Revision 629dabf6
Von Sven Schöling vor fast 3 Jahren hinzugefügt
SL/Controller/DeliveryOrder.pm | ||
---|---|---|
1061 | 1061 |
my $transfer = SL::DB::Inventory->new_from($stock); |
1062 | 1062 |
$transfer->trans_type($trans_type); |
1063 | 1063 |
|
1064 |
push @transfer_requests, $transfer; |
|
1064 |
push @transfer_requests, $transfer if defined $transfer->qty && $transfer->qty != 0;
|
|
1065 | 1065 |
}; |
1066 | 1066 |
} |
1067 | 1067 |
|
... | ... | |
1378 | 1378 |
$obj->$_($line->{$_}) for qw(bin_id warehouse_id chargenumber qty unit); |
1379 | 1379 |
$obj->bestbefore_as_date($line->{bestfbefore}) |
1380 | 1380 |
if $line->{bestbefore} && $::instance_conf->get_show_bestbefore; |
1381 |
push @save, $obj; |
|
1381 |
push @save, $obj if $obj->qty;
|
|
1382 | 1382 |
} |
1383 | 1383 |
|
1384 | 1384 |
$item->delivery_order_stock_entries(@save); |
Auch abrufbar als: Unified diff
DeliveryOrder: absicherung gegen leere stock Einträge