Skip to content

Commit

Permalink
FIX: DeliveryOrder: Ohne Prüfung auf Bestand
Browse files Browse the repository at this point in the history
    Wurde falsch auf Artikel des Transfers zugegriffen
  • Loading branch information
z4m1n0 committed Jan 24, 2025
1 parent 64a0ac1 commit b491eb9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions SL/Controller/DeliveryOrder.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1202,14 +1202,14 @@ sub action_transfer_stock_default {

$parts_qty{$part->id} += $qty if $qty;
push @transfer_requests, {
'delivery_order_item_id' => $item->id,
'warehouse_id' => $part->warehouse_id || $default_warehouse_id,
'bin_id' => $part->bin_id || $default_bin_id,
'unit' => $part->unit,
'qty' => $qty,
'delivery_order_item' => $item,
'warehouse_id' => $part->warehouse_id || $default_warehouse_id,
'bin_id' => $part->bin_id || $default_bin_id,
'unit' => $part->unit,
'qty' => $qty,
# added in check transfer_request out direction if possible
'chargenumber' => undef, # $item->serialnumber, # Is not used in delivery order
'bestbefore' => undef, # $item->bestbefore, # Is not used in delivery order
'chargenumber' => undef, # $item->serialnumber, # Is not used in delivery order
'bestbefore' => undef, # $item->bestbefore, # Is not used in delivery order
}
}

Expand Down

0 comments on commit b491eb9

Please sign in to comment.