DeliveryOrder: richtige Werte im stock Dialog anzeigen
authorSven Schöling <s.schoeling@googlemail.com>
Mon, 31 Jan 2022 07:39:53 +0000 (08:39 +0100)
committerJan Büren <jan@kivitendo.de>
Mon, 14 Feb 2022 14:04:13 +0000 (15:04 +0100)
SL/Controller/DeliveryOrder.pm

index 7997d3e..79931fd 100644 (file)
@@ -959,8 +959,8 @@ sub merge_stock_data {
   } else {
     for my $sinfo (@{ $stock_info }) {
       my $bin = SL::DB::Bin->load_cached($sinfo->{bin_id});
-      $sinfo->{warehouse_description} = $bin->warehouse->description;
-      $sinfo->{bin_description}       = $bin->description;
+      $sinfo->{warehousedescription} = $bin->warehouse->description;
+      $sinfo->{bindescription}       = $bin->description;
       map { $sinfo->{"stock_$_"}      = $sinfo->{$_} } qw(qty unit);
     }
   }