Fixes issue 32060: Wrong Goods Receipt button status under some circumstances
authorMark <m.molina@nectus.com>
Wed, 17 Feb 2016 11:03:01 -0500
changeset 28621 7410454ae6c6
parent 28620 02db9cb1d672
child 28622 815ba738d4dc
Fixes issue 32060: Wrong Goods Receipt button status under some circumstances

Column process_goods_java inside M_INOUT table was updated correctly inside the process of a Pending Goods Receipts.
The button show the expected text.
src/org/openbravo/erpCommon/ad_forms/MaterialReceiptPending.html
src/org/openbravo/erpCommon/ad_forms/MaterialReceiptPending.java
src/org/openbravo/erpCommon/ad_forms/MaterialReceiptPending_data.xsql
--- a/src/org/openbravo/erpCommon/ad_forms/MaterialReceiptPending.html	Fri Feb 19 11:21:21 2016 +0100
+++ b/src/org/openbravo/erpCommon/ad_forms/MaterialReceiptPending.html	Wed Feb 17 11:03:01 2016 -0500
@@ -13,7 +13,7 @@
  * under the License. 
  * The Original Code is Openbravo ERP. 
  * The Initial Developer of the Original Code is Openbravo SLU 
- * All portions are Copyright (C) 2001-2015 Openbravo SLU 
+ * All portions are Copyright (C) 2001-2016 Openbravo SLU 
  * All Rights Reserved. 
  * Contributor(s):  ______________________________________.
  ************************************************************************
--- a/src/org/openbravo/erpCommon/ad_forms/MaterialReceiptPending.java	Fri Feb 19 11:21:21 2016 +0100
+++ b/src/org/openbravo/erpCommon/ad_forms/MaterialReceiptPending.java	Wed Feb 17 11:03:01 2016 -0500
@@ -11,7 +11,7 @@
  * under the License. 
  * The Original Code is Openbravo ERP. 
  * The Initial Developer of the Original Code is Openbravo SLU 
- * All portions are Copyright (C) 2001-2015 Openbravo SLU
+ * All portions are Copyright (C) 2001-2016 Openbravo SLU
  * All Rights Reserved. 
  * Contributor(s):  ______________________________________.
  ************************************************************************
--- a/src/org/openbravo/erpCommon/ad_forms/MaterialReceiptPending_data.xsql	Fri Feb 19 11:21:21 2016 +0100
+++ b/src/org/openbravo/erpCommon/ad_forms/MaterialReceiptPending_data.xsql	Wed Feb 17 11:03:01 2016 -0500
@@ -102,7 +102,7 @@
       	DELIVERYRULE, FREIGHTCOSTRULE, FREIGHTAMT, DELIVERYVIARULE, M_SHIPPER_ID, C_CHARGE_ID, CHARGEAMT, 
       	PRIORITYRULE, DATEPRINTED, C_INVOICE_ID, CREATEFROM, GENERATETO, AD_USER_ID, SALESREP_ID, NOPACKAGES, 
       	PICKDATE, SHIPDATE, TRACKINGNO, AD_ORGTRX_ID, C_PROJECT_ID, C_CAMPAIGN_ID, C_ACTIVITY_ID, 
-      	USER1_ID, USER2_ID, UPDATELINES, ISLOGISTIC, GENERATELINES, C_COSTCENTER_ID, A_ASSET_ID)
+      	USER1_ID, USER2_ID, UPDATELINES, ISLOGISTIC, GENERATELINES, C_COSTCENTER_ID, A_ASSET_ID, PROCESS_GOODS_JAVA)
       VALUES(?,?,?,?,now(),?,now(),?,
       	?,?,?,?,?,?,?,
       	?,?,?,TO_DATE(?),?,?,TO_DATE(?),
@@ -110,7 +110,7 @@
       	?,?,TO_NUMBER(?),?,?,?,TO_NUMBER(?),
       	?,NULL,NULL,?,?,?,?,NULL,
       	NULL,NULL,NULL,?,?,?,?,
-      	?,?,?,?,?,?,?)
+      	?,?,?,?,?,?,?,?)
       </Sql>
       <Parameter name="mInoutId"/>
       <Parameter name="adClientId"/>
@@ -160,6 +160,7 @@
       <Parameter name="generatelines"/>
       <Parameter name="cCostcenterId"/>
       <Parameter name="aAssetId"/>
+      <Parameter name="docaction"/>
   </SqlMethod>
   <SqlMethod name="mInoutPost0" connection="true" type="callableStatement" return="object" object="MaterialReceiptPendingData">
       <SqlMethodComment></SqlMethodComment>