Fixes Issue 27095:Create Invoice from Orders does not work for After Delivery
authorAtul Gaware <atul.gaware@openbravo.com>
Wed, 16 Jul 2014 21:28:59 +0530
changeset 24172 d7c19111c4f8
parent 24171 0d33bb96c147
child 24173 068ce411734f
Fixes Issue 27095:Create Invoice from Orders does not work for After Delivery
Invoice Terms orders
src-db/database/model/functions/C_INVOICE_CREATE.xml
--- a/src-db/database/model/functions/C_INVOICE_CREATE.xml	Wed Jul 16 19:40:47 2014 +0200
+++ b/src-db/database/model/functions/C_INVOICE_CREATE.xml	Wed Jul 16 21:28:59 2014 +0530
@@ -803,7 +803,7 @@
    
           SELECT count(*) 
           INTO v_isSchedule
-          FROM DUAL WHERE EXISTS (SELECT 1 FROM C_ORDER WHERE ISSELECTED = 'Y' AND INVOICERULE = 'S');
+          FROM DUAL WHERE EXISTS (SELECT 1 FROM C_ORDER WHERE ISSELECTED = 'Y' AND INVOICERULE IN ('S','D'));
        
         /**
         * Invoice Schedule ======================================================