IDEMPIERE-5178: Attribute dialog selection do not show all warehouse ASI on cost adjustment. (#1156)

This commit is contained in:
Deepak Pansheriya 2022-10-21 14:40:42 +05:30 committed by GitHub
parent 978be7a956
commit 891e22d80b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -906,7 +906,7 @@ public class WPAttributeDialog extends Window implements EventListener<Event>
if (C_DocType_ID > 0) { if (C_DocType_ID > 0) {
MDocType doctype = new MDocType (Env.getCtx(), C_DocType_ID, null); MDocType doctype = new MDocType (Env.getCtx(), C_DocType_ID, null);
String docbase = doctype.getDocBaseType(); String docbase = doctype.getDocBaseType();
if (docbase.equals(MDocType.DOCBASETYPE_MaterialReceipt)) if (docbase.equals(MDocType.DOCBASETYPE_MaterialReceipt) || MDocType.DOCSUBTYPEINV_CostAdjustment.equals(doctype.getDocSubTypeInv()))
M_Warehouse_ID = 0; M_Warehouse_ID = 0;
} }