Lagertransfer: Falscher Spaltenname für Einheitenname
authorMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 13 Dec 2010 10:01:17 +0000 (11:01 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Thu, 27 Oct 2011 15:02:47 +0000 (17:02 +0200)
SL/WH.pm

index bf850fa..3fbbfa4 100644 (file)
--- a/SL/WH.pm
+++ b/SL/WH.pm
@@ -79,7 +79,7 @@ sub transfer {
       my ($trans_id) = selectrow_query($::form, $::form->get_standard_dbh, qq|SELECT nextval('id')|);
 
       my $part          = $objectify->($transfer, 'parts',         'SL::DB::Part');
-      my $unit          = $objectify->($transfer, 'unit',          'SL::DB::Unit',         unit => $transfer->{unit});
+      my $unit          = $objectify->($transfer, 'unit',          'SL::DB::Unit',         name => $transfer->{unit});
       my $qty           = $transfer->{qty};
       my $src_bin       = $objectify->($transfer, 'src_bin',       'SL::DB::Bin');
       my $dst_bin       = $objectify->($transfer, 'dst_bin',       'SL::DB::Bin');