Fixes issue 0015745: Create invoices from orders. Invoice rule. After delivery not working properly
authorAdrián Romero <adrianromero@openbravo.com>
Mon, 24 Jan 2011 15:45:25 +0100
changeset 10099 5e020eacbbec
parent 10098 b3960e2ed9de
child 10100 99d8d34d686b
Fixes issue 0015745: Create invoices from orders. Invoice rule. After delivery not working properly
It has been restored the line removed
src-db/database/model/functions/C_INVOICE_CREATE.xml
--- a/src-db/database/model/functions/C_INVOICE_CREATE.xml	Mon Jan 24 15:36:42 2011 +0100
+++ b/src-db/database/model/functions/C_INVOICE_CREATE.xml	Mon Jan 24 15:45:25 2011 +0100
@@ -984,6 +984,9 @@
                   v_InOut_ID:='-1';
                 END IF;
               END IF;--FINISH_PROCESS
+
+              v_InOut_ID:=Cur_InvoiceSchedule.M_InOut_ID;
+
               IF(NOT FINISH_PROCESS) THEN
                 -- Normal Line
                 Ad_Sequence_Next('C_InvoiceLine', Cur_InvoiceSchedule.C_Order_ID, v_NextNo) ;