IDEMPIERE-5555 Locator not showing all options on Product window with only a warehouse (#1653)
- Added predefined context variable IgnoreProductInLocatorEditor
This commit is contained in:
parent
6d9ae6e50e
commit
4d9c77b2e5
|
@ -0,0 +1,11 @@
|
|||
-- IDEMPIERE-5555 Locator not showing all options on Product window with only a warehouse
|
||||
SELECT register_migration_script('202301261727_IDEMPIERE-5555.sql') FROM dual;
|
||||
|
||||
SET SQLBLANKLINES ON
|
||||
SET DEFINE OFF
|
||||
|
||||
-- Jan 26, 2023, 5:27:51 PM CET
|
||||
UPDATE AD_Window SET PredefinedContextVariables='IgnoreIsSOTrxInBPInfo=Y
|
||||
IgnoreProductInLocatorEditor=Y',Updated=TO_TIMESTAMP('2023-01-26 17:27:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=140
|
||||
;
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
-- IDEMPIERE-5555 Locator not showing all options on Product window with only a warehouse
|
||||
SELECT register_migration_script('202301261727_IDEMPIERE-5555.sql') FROM dual;
|
||||
|
||||
-- Jan 26, 2023, 5:27:51 PM CET
|
||||
UPDATE AD_Window SET PredefinedContextVariables='IgnoreIsSOTrxInBPInfo=Y
|
||||
IgnoreProductInLocatorEditor=Y',Updated=TO_TIMESTAMP('2023-01-26 17:27:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=140
|
||||
;
|
||||
|
|
@ -510,6 +510,10 @@ public class WLocatorEditor extends WEditor implements EventListener<Event>, Pro
|
|||
if (!Env.isSOTrx(Env.getCtx(), m_WindowNo))
|
||||
return 0; // No product restrictions for PO
|
||||
|
||||
String ignoreProduct = Env.getContext(Env.getCtx(), m_WindowNo, Env.PREFIX_PREDEFINED_VARIABLE+"IgnoreProductInLocatorEditor");
|
||||
if ("Y".equalsIgnoreCase(ignoreProduct))
|
||||
return 0;
|
||||
|
||||
String only_Product = null;
|
||||
if (gridField != null && gridField.getVO().TabNo > 0)
|
||||
only_Product = Env.getContext(Env.getCtx(), m_WindowNo, gridField.getVO().TabNo, "M_Product_ID", false, true);
|
||||
|
|
Loading…
Reference in New Issue