From f444b80f3d2e45b1cdaf2543191fd0ca46166f4c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 22 Jul 2013 16:52:32 +0200 Subject: [PATCH] =?utf8?q?Bei=20Hauptlager=20setzen=20nicht=20onhand=20?= =?utf8?q?=C3=BCberschreiben.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/Inventory.pm | 1 + 1 file changed, 1 insertion(+) 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; -- 2.20.1