Revision fff57e55
Von Moritz Bunkus vor fast 11 Jahren hinzugefügt
SL/DB/Invoice.pm | ||
---|---|---|
177 | 177 |
|
178 | 178 |
} @{ $items }; |
179 | 179 |
|
180 |
@items = grep { $_->qty * 1 } @items if $params{skip_items_zero_qty}; |
|
181 |
|
|
180 | 182 |
$invoice->invoiceitems(\@items); |
181 | 183 |
|
182 | 184 |
return $invoice; |
... | ... | |
335 | 337 |
C<$source>. This option can be used to override the sorting, to |
336 | 338 |
exclude certain positions or to add additional ones. |
337 | 339 |
|
340 |
=item C<skip_items_zero_qty> |
|
341 |
|
|
342 |
If trueish then items with a quantity of 0 are skipped. |
|
343 |
|
|
338 | 344 |
=item C<attributes> |
339 | 345 |
|
340 | 346 |
An optional hash reference. If it exists then it is passed to C<new> |
Auch abrufbar als: Unified diff
SL::DB::Invoice->new_from: neue Option skip_items_zero_qty
…für Konsistenz mit DeliveryOrder->new_from.