X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/72539cb39a3d19f930a8e0e41e46bf41afe9a8f1..37df0ebfaa3bfc0214fcfbe2a4f7aa590eddf591:/SL/OE.pm diff --git a/SL/OE.pm b/SL/OE.pm index fb7153c4f..fab550712 100644 --- a/SL/OE.pm +++ b/SL/OE.pm @@ -755,6 +755,9 @@ sub retrieve { if (@ids); map { delete $ref->{$_} } qw|ordnumber_oe transdate_oe cusordnumber_oe|; + # 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})