IDEMPIERE-3624 Physical Inventory - getDateMaterialPolicy for Line should include locator

This commit is contained in:
Heng Sin Low 2018-01-19 17:25:18 +08:00
parent af17364314
commit b91b362f10
1 changed files with 1 additions and 1 deletions

View File

@ -574,7 +574,7 @@ public class MInventory extends X_M_Inventory implements DocAction
Timestamp dateMPolicy= qtyDiff.signum() > 0 ? getMovementDate() : null;
if (line.getM_AttributeSetInstance_ID() > 0)
{
Timestamp t = MStorageOnHand.getDateMaterialPolicy(line.getM_Product_ID(), line.getM_AttributeSetInstance_ID(), line.get_TrxName());
Timestamp t = MStorageOnHand.getDateMaterialPolicy(line.getM_Product_ID(), line.getM_AttributeSetInstance_ID(), line.getM_Locator_ID(), line.get_TrxName());
if (t != null)
dateMPolicy = t;
}