details:   https://code.openbravo.com/erp/devel/pi/rev/9d6fc683fca0
changeset: 34101:9d6fc683fca0
user:      Atul Gaware <atul.gaware <at> openbravo.com>
date:      Fri May 25 23:58:13 2018 +0530
summary:   Fixes Issue 38597: Today's movement date for Goods Shipment
generated when booking Warehouse Order

Unlike POS Order, used order date as movement date in shipment
when created while processing sales order of type warehoue order

diffstat:

 src-db/database/model/functions/M_INOUT_CREATE.xml |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r f8bc7fbdf77e -r 9d6fc683fca0 
src-db/database/model/functions/M_INOUT_CREATE.xml
--- a/src-db/database/model/functions/M_INOUT_CREATE.xml        Fri May 25 
21:00:17 2018 +0530
+++ b/src-db/database/model/functions/M_INOUT_CREATE.xml        Fri May 25 
23:58:13 2018 +0530
@@ -34,7 +34,7 @@
   * parts created by ComPiere are Copyright (C) ComPiere, Inc.;
   * All Rights Reserved.
   * Contributor(s): Openbravo SLU
-  * Contributions are Copyright (C) 2001-2017 Openbravo, S.L.U.
+  * Contributions are Copyright (C) 2001-2018 Openbravo, S.L.U.
   *
   * Specifically, this derivative work is based upon the following Compiere
   * file and version.
@@ -376,8 +376,8 @@
           Ad_Sequence_Doc('DocumentNo_M_InOut', Cur_Order.AD_Client_ID, 'Y', 
v_DocumentNo) ;
         END IF;
 
-        IF (Cur_Order.DocSubTypeSO = 'WR') THEN
-          v_NEWORDERDATE := Cur_Order.DATEORDERED; -- IS A POS ORDER
+        IF (Cur_Order.DocSubTypeSO IN ('WR','WP')) THEN
+          v_NEWORDERDATE := Cur_Order.DATEORDERED; -- IS A POS ORDER OR A 
WAREHOUSE ORDER
         ELSE
           v_NEWORDERDATE := TRUNC(now());
         END IF;

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to