Revision 4bd6ac8a
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); |
js/kivi.DeliveryOrder.js | ||
---|---|---|
106 | 106 |
|
107 | 107 |
let data = []; |
108 | 108 |
$("#stock-in-out-table tr.listrow").each((i,row) => { |
109 |
let qty = kivi.parse_amount($(row).find(".data-qty").val()); |
|
110 |
|
|
111 |
if (qty === 0) return; |
|
112 |
|
|
109 | 113 |
data.push({ |
110 |
qty: kivi.parse_amount($(row).find(".data-qty").val()),
|
|
114 |
qty: qty,
|
|
111 | 115 |
warehouse_id: $(row).find(".data-warehouse-id").val(), |
112 | 116 |
bin_id: $(row).find(".data-bin-id").val(), |
113 | 117 |
chargenumber: $(row).find(".data-chargenumber").val(), |
Auch abrufbar als: Unified diff
DeliveryOrder: absicherung gegen leere stock Einträge