From 96a42a5a87ae32a8b96884049e54f900f1382d7a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Sun, 27 Feb 2011 14:15:53 +0100 Subject: [PATCH] =?utf8?q?WH->transfer=20gibt=20jetzt=20eine=20liste=20der?= =?utf8?q?=20erzeugten=20trans=5Fids=20zur=C3=BCck.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/WH.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SL/WH.pm b/SL/WH.pm index e98321616..352ca1af8 100644 --- a/SL/WH.pm +++ b/SL/WH.pm @@ -73,6 +73,8 @@ sub transfer { return; }; + my @trans_ids; + my $db = SL::DB::Inventory->new->db; $db->do_transaction(sub{ while (my $transfer = shift @args) { @@ -130,12 +132,16 @@ sub transfer { qty => $qty, )->save; } + + push @trans_ids, $trans_id; } }) or do { $::form->error("Warehouse transfer error: " . join("\n", (split(/\n/, $db->error))[0..2])); }; $::lxdebug->leave_sub; + + return @trans_ids; } sub transfer_assembly { -- 2.20.1