From: Sven Schöling Date: Mon, 22 Jul 2013 14:52:32 +0000 (+0200) Subject: Bei Hauptlager setzen nicht onhand überschreiben. X-Git-Tag: release-3.1.0beta1~148 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=f444b80f3d2e45b1cdaf2543191fd0ca46166f4c;p=kivitendo-erp.git Bei Hauptlager setzen nicht onhand überschreiben. --- diff --git a/SL/Controller/Inventory.pm b/SL/Controller/Inventory.pm index 10f01f8e7..2a5b8de4a 100644 --- a/SL/Controller/Inventory.pm +++ b/SL/Controller/Inventory.pm @@ -58,6 +58,7 @@ sub action_stock { }); if ($::form->{write_default_bin}) { + $self->part->load; # onhand is calculated in between. don't mess that up $self->part->bin($self->bin); $self->part->warehouse($self->warehouse); $self->part->save;