Revision f9fdf190
Von Moritz Bunkus vor etwa 10 Jahren hinzugefügt
SL/DB/DeliveryOrder.pm | ||
---|---|---|
164 | 164 |
} @{ $items }; |
165 | 165 |
|
166 | 166 |
@items = grep { $_->qty * 1 } @items if $params{skip_items_zero_qty}; |
167 |
@items = grep { $_->qty >=0 } @items if $params{skip_items_negative_qty}; |
|
167 | 168 |
|
168 | 169 |
$delivery_order->items(\@items); |
169 | 170 |
|
... | ... | |
239 | 240 |
C<$source>. This option can be used to override the sorting, to |
240 | 241 |
exclude certain positions or to add additional ones. |
241 | 242 |
|
243 |
=item C<skip_items_negative_qty> |
|
244 |
|
|
245 |
If trueish then items with a negative quantity are skipped. Items with |
|
246 |
a quantity of 0 are not affected by this option. |
|
247 |
|
|
242 | 248 |
=item C<skip_items_zero_qty> |
243 | 249 |
|
244 | 250 |
If trueish then items with a quantity of 0 are skipped. |
SL/DB/Invoice.pm | ||
---|---|---|
198 | 198 |
} @{ $items }; |
199 | 199 |
|
200 | 200 |
@items = grep { $_->qty * 1 } @items if $params{skip_items_zero_qty}; |
201 |
@items = grep { $_->qty >=0 } @items if $params{skip_items_negative_qty}; |
|
201 | 202 |
|
202 | 203 |
$invoice->invoiceitems(\@items); |
203 | 204 |
|
... | ... | |
387 | 388 |
C<$source>. This option can be used to override the sorting, to |
388 | 389 |
exclude certain positions or to add additional ones. |
389 | 390 |
|
391 |
=item C<skip_items_negative_qty> |
|
392 |
|
|
393 |
If trueish then items with a negative quantity are skipped. Items with |
|
394 |
a quantity of 0 are not affected by this option. |
|
395 |
|
|
390 | 396 |
=item C<skip_items_zero_qty> |
391 | 397 |
|
392 | 398 |
If trueish then items with a quantity of 0 are skipped. |
Auch abrufbar als: Unified diff
SL::DB::{Invoice,DeliveryOrder}: Items mit neg. qty beim Wandeln optional weglassen