Fixes issue 0026234: Error adding a description to a voided invoice
authorJon Alegría <jon.alegria@openbravo.com>
Thu, 10 Apr 2014 09:41:39 +0200
changeset 22853 df61966871a0
parent 22852 8403924dc79d
child 22854 c68a14165eb3
child 23547 0348da942c01
Fixes issue 0026234: Error adding a description to a voided invoice
src-db/database/model/functions/C_INVOICE_POST.xml
--- a/src-db/database/model/functions/C_INVOICE_POST.xml	Tue Apr 01 19:21:48 2014 +0530
+++ b/src-db/database/model/functions/C_INVOICE_POST.xml	Thu Apr 10 09:41:39 2014 +0200
@@ -616,7 +616,7 @@
             IsActive, now(), v_UpdatedBy, now(),
             v_UpdatedBy, IsSOTrx, v_RDocumentNo, 'DR',
              'CO', 'N', 'N', v_DoctypeReversed_ID,
-            v_DoctypeReversed_ID, '(*R*: ' || DocumentNo || ') ' || Description, SalesRep_ID,
+            v_DoctypeReversed_ID, '(*R*: ' || DocumentNo || ') ' || COALESCE(Description, ''), SalesRep_ID,
             now(), NULL, 'N', NULL,
             now(), C_PaymentTerm_ID, C_BPartner_ID, C_BPartner_Location_ID,
             AD_User_ID, POReference, DateOrdered, IsDiscountPrinted,