IDEMPIERE-3330 Shipment Line - movement qty field not shown until qty is changed
This commit is contained in:
parent
4573c4623b
commit
df7de8087a
|
@ -0,0 +1,11 @@
|
|||
SET SQLBLANKLINES ON
|
||||
SET DEFINE OFF
|
||||
|
||||
-- IDEMPIERE-3330 Shipment Line - movement qty field not shown until qty is changed
|
||||
-- Mar 31, 2017 6:03:02 PM CEST
|
||||
UPDATE AD_Column SET Callout='org.compiere.model.CalloutInOut.navigateInOutLine', IsUpdateable='N',Updated=TO_DATE('2017-03-31 18:03:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=3529
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201703311809_IDEMPIERE-3330.sql') FROM dual
|
||||
;
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
-- IDEMPIERE-3330 Shipment Line - movement qty field not shown until qty is changed
|
||||
-- Mar 31, 2017 6:03:02 PM CEST
|
||||
UPDATE AD_Column SET Callout='org.compiere.model.CalloutInOut.navigateInOutLine', IsUpdateable='N',Updated=TO_TIMESTAMP('2017-03-31 18:03:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=3529
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201703311809_IDEMPIERE-3330.sql') FROM dual
|
||||
;
|
||||
|
|
@ -719,4 +719,21 @@ public class CalloutInOut extends CalloutEngine
|
|||
return "";
|
||||
} // asi
|
||||
|
||||
public String navigateInOutLine(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
|
||||
{
|
||||
if (isCalloutActive() || value == null)
|
||||
return "";
|
||||
|
||||
int M_Product_ID = Env.getContextAsInt(ctx, WindowNo, mTab.getTabNo(), "M_Product_ID");
|
||||
// No Product
|
||||
if (M_Product_ID != 0) {
|
||||
MProduct product = MProduct.get(ctx, M_Product_ID);
|
||||
int C_UOM_To_ID = Env.getContextAsInt(ctx, WindowNo, mTab.getTabNo(), "C_UOM_ID");
|
||||
boolean conversion = (C_UOM_To_ID != product.getC_UOM_ID());
|
||||
Env.setContext(ctx, WindowNo, "UOMConversion", conversion ? "Y" : "N");
|
||||
}
|
||||
return "";
|
||||
} // navigateInOutLine
|
||||
|
||||
|
||||
} // CalloutInOut
|
Loading…
Reference in New Issue