Fixes Issue 25616: Process option in a purchase order without lines, change the status to booked
authorPandeeswari Ramakrishnan <pandeeswari.ramakrishnan@openbravo.com>
Thu, 13 Feb 2014 21:21:28 +0530
changeset 22015 70df6ccc76b2
parent 22014 8626778d85f2
child 22016 99858c127329
Fixes Issue 25616: Process option in a purchase order without lines, change the status to booked
src-db/database/model/functions/C_ORDER_POST1.xml
--- a/src-db/database/model/functions/C_ORDER_POST1.xml	Thu Feb 13 15:36:48 2014 +0000
+++ b/src-db/database/model/functions/C_ORDER_POST1.xml	Thu Feb 13 21:21:28 2014 +0530
@@ -294,7 +294,7 @@
     /**
     * Check if order has lines
     */
-    IF (v_DocAction = 'CO') THEN
+    IF (v_DocAction = 'CO' OR v_DocAction = 'PR') THEN
       SELECT COUNT(*)
         INTO v_Aux
        FROM C_ORDERLINE