IDEMPIERE-5703 NPE when importing Physical Inventory using Import CSV button (#1813)
* IDEMPIERE-5703 NPE when importing Physical Inventory using Import CSV button * - implement better approach suggested by Heng Sin
This commit is contained in:
parent
92424ec5d9
commit
70413f206b
|
@ -61,6 +61,8 @@ public class CostAdjustmentLineProduct implements IColumnCallout {
|
|||
trxName = gt.get_TrxName();
|
||||
}
|
||||
}
|
||||
if (mTab.getValue("M_Inventory_ID") == null)
|
||||
return null;
|
||||
MInventory inventory = new MInventory(ctx, (Integer) mTab.getValue("M_Inventory_ID"), trxName);
|
||||
if (MDocType.DOCSUBTYPEINV_CostAdjustment.equals(inventory.getC_DocType().getDocSubTypeInv())) {
|
||||
String costingMethod = inventory.getCostingMethod();
|
||||
|
|
Loading…
Reference in New Issue