IDEMPIERE-2621 Assign default warehouse from Org on inventory docs

This commit is contained in:
Carlos Ruiz 2018-09-08 15:52:47 +02:00
parent a19eaa0c82
commit 22460071c0
3 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,19 @@
SET SQLBLANKLINES ON
SET DEFINE OFF
-- IDEMPIERE-2621 Assign default warehouse from Org on inventory docs
-- Sep 8, 2018 3:47:28 PM CEST
UPDATE AD_Column SET Callout='org.compiere.model.CalloutOrder.organization',Updated=TO_DATE('2018-09-08 15:47:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=3523
;
-- Sep 8, 2018 3:48:02 PM CEST
UPDATE AD_Column SET Callout='org.compiere.model.CalloutOrder.organization',Updated=TO_DATE('2018-09-08 15:48:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=3544
;
-- Sep 8, 2018 3:48:30 PM CEST
UPDATE AD_Column SET AD_Val_Rule_ID=130, Callout='org.compiere.model.CalloutOrder.organization',Updated=TO_DATE('2018-09-08 15:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=11469
;
SELECT register_migration_script('201809081552_IDEMPIERE-2621.sql') FROM dual
;

View File

@ -0,0 +1,16 @@
-- IDEMPIERE-2621 Assign default warehouse from Org on inventory docs
-- Sep 8, 2018 3:47:28 PM CEST
UPDATE AD_Column SET Callout='org.compiere.model.CalloutOrder.organization',Updated=TO_TIMESTAMP('2018-09-08 15:47:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=3523
;
-- Sep 8, 2018 3:48:02 PM CEST
UPDATE AD_Column SET Callout='org.compiere.model.CalloutOrder.organization',Updated=TO_TIMESTAMP('2018-09-08 15:48:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=3544
;
-- Sep 8, 2018 3:48:30 PM CEST
UPDATE AD_Column SET AD_Val_Rule_ID=130, Callout='org.compiere.model.CalloutOrder.organization',Updated=TO_TIMESTAMP('2018-09-08 15:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=11469
;
SELECT register_migration_script('201809081552_IDEMPIERE-2621.sql') FROM dual
;

View File

@ -1356,6 +1356,7 @@ public class CalloutOrder extends CalloutEngine
return "";
} // SalesOrderTenderType
/* Called from AD_Org_ID in tables C_Order, M_InOut, M_Inventory, M_Requisition */
public String organization(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value){
//Return if Organization field is empty