From b518ce7a5f88da626017fbc2ecd4f71f1aac1978 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 22 Nov 2006 14:36:14 +0000 Subject: [PATCH] Recommit von r862: Sammelrechnungen waren nicht mehr abspeicherbar, das hier behebt diesen Bug. --- SL/OE.pm | 3 +++ 1 file changed, 3 insertions(+) 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}) -- 2.20.1