X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/54e4131e091831e00a861fe2c4f53e344b87ddca..c62ddafe32128a30ea9247568858d344ed6d5655:/SL/OE.pm diff --git a/SL/OE.pm b/SL/OE.pm index 0349977a7..2e5c8d696 100644 --- a/SL/OE.pm +++ b/SL/OE.pm @@ -866,6 +866,9 @@ sub retrieve { $stw->finish; } + # delete orderitems_id in collective orders, so that they get cloned no matter what + delete $ref->{orderitems_id} if (@ids); + #set expense_accno=inventory_accno if they are different => bilanz $vendor_accno = ($ref->{expense_accno} != $ref->{inventory_accno})