From: Sven Schöling Date: Sun, 27 Feb 2011 13:15:53 +0000 (+0100) Subject: WH->transfer gibt jetzt eine liste der erzeugten trans_ids zurück. X-Git-Tag: release-2.7.0beta1~186 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=96a42a5a87ae32a8b96884049e54f900f1382d7a;p=kivitendo-erp.git WH->transfer gibt jetzt eine liste der erzeugten trans_ids zurück. --- 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 {