Revision fff57e55
Von Moritz Bunkus vor etwa 11 Jahren hinzugefügt
SL/DB/Invoice.pm | ||
---|---|---|
|
||
} @{ $items };
|
||
|
||
@items = grep { $_->qty * 1 } @items if $params{skip_items_zero_qty};
|
||
|
||
$invoice->invoiceitems(\@items);
|
||
|
||
return $invoice;
|
||
... | ... | |
C<$source>. This option can be used to override the sorting, to
|
||
exclude certain positions or to add additional ones.
|
||
|
||
=item C<skip_items_zero_qty>
|
||
|
||
If trueish then items with a quantity of 0 are skipped.
|
||
|
||
=item C<attributes>
|
||
|
||
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.