IDEMPIERE-3352 Enhancement of Batch Level Costing. Fix a storage update bug.

This commit is contained in:
Heng Sin Low 2017-08-13 22:37:14 +08:00
parent 99839476c3
commit 045595b2cb
1 changed files with 0 additions and 1 deletions

View File

@ -710,7 +710,6 @@ public class MInventory extends X_M_Inventory implements DocAction
MInventoryLineMA lineMA = new MInventoryLineMA(line, storage.getM_AttributeSetInstance_ID(), maQty.negate(), storage.getDateMaterialPolicy(),true); MInventoryLineMA lineMA = new MInventoryLineMA(line, storage.getM_AttributeSetInstance_ID(), maQty.negate(), storage.getDateMaterialPolicy(),true);
lineMA.saveEx(); lineMA.saveEx();
qtyDiff = qtyDiff.subtract(maQty); qtyDiff = qtyDiff.subtract(maQty);
storage.addQtyOnHand(maQty.negate());
if (qtyDiff.compareTo(Env.ZERO)==0) if (qtyDiff.compareTo(Env.ZERO)==0)
break; break;