Revision 640e3288
Von Sven Schöling vor mehr als 1 Jahr hinzugefügt
SL/DB/Invoice.pm | ||
---|---|---|
272 | 272 |
donumber => ref($item_parent) eq 'SL::DB::DeliveryOrder' ? $item_parent->donumber : $source_item->can('donumber') ? $source_item->donumber : '', |
273 | 273 |
); |
274 | 274 |
|
275 |
$current_invoice_item->{"converted_from_orderitems_id"} = $_->{id} if ref($item_parent) eq 'SL::DB::Order';
|
|
276 |
$current_invoice_item->{"converted_from_delivery_order_items_id"} = $_->{id} if ref($item_parent) eq 'SL::DB::DeliveryOrder';
|
|
275 |
$current_invoice_item->{RECORD_ITEM_ID()} = $_->{id};
|
|
276 |
$current_invoice_item->{RECORD_ITEM_TYPE_REF()} = ref $source_item;
|
|
277 | 277 |
$current_invoice_item; |
278 | 278 |
} @{ $items }; |
279 | 279 |
|
280 |
$invoice->{RECORD_ID()} = $source->id; |
|
281 |
$invoice->{RECORD_TYPE_REF()} = ref $source; |
|
282 |
|
|
280 | 283 |
@items = grep { $params{item_filter}->($_) } @items if $params{item_filter}; |
281 | 284 |
@items = grep { $_->qty * 1 } @items if $params{skip_items_zero_qty}; |
282 | 285 |
@items = grep { $_->qty >=0 } @items if $params{skip_items_negative_qty}; |
Auch abrufbar als: Unified diff
RecordLink: converted_from_* Felder in allen convert_to und new_from korrekt setzen.
Das hier benutzt jetzt das neue Reclamation Format. Statt
wird jetzt
benutzt.