Fixes issue 0026277: In some specific cases, description is not copied
authorJon Alegría <jon.alegria@openbravo.com>
Tue, 15 Apr 2014 02:11:49 +0200
changeset 22917 4bce276a5b06
parent 22916 81ef510917bd
child 22918 6e62b57f0f36
Fixes issue 0026277: In some specific cases, description is not copied
from order to invoice
src-db/database/model/functions/C_INVOICE_CREATE.xml
--- a/src-db/database/model/functions/C_INVOICE_CREATE.xml	Mon Apr 14 17:13:43 2014 +0200
+++ b/src-db/database/model/functions/C_INVOICE_CREATE.xml	Tue Apr 15 02:11:49 2014 +0200
@@ -1183,7 +1183,7 @@
                        'Y', now(), v_ADUserId, now(),
                       v_ADUserId, 'Y', v_DocumentNo, 'DR',
                        'CO', 'N', 'N', v_DocType_ID,
-                      v_DocType_ID, v_description,
+                      v_DocType_ID, COALESCE(v_description, Cur_InvoiceSchedule.Description),
                       Cur_InvoiceSchedule.SalesRep_ID, v_DateInvoiced, NULL, 'N',
                       v_DateInvoiced, v_DateInvoiced, -- DateInvoiced=DateAcct
                       Cur_InvoiceSchedule.C_PaymentTerm_ID, Cur_InvoiceSchedule.C_BPartner_ID, Cur_InvoiceSchedule.BillTo_ID, Cur_InvoiceSchedule.AD_User_ID,