IDEMPIERE-3352 Enhancement of Batch Level Costing. Fix a storage update bug.
This commit is contained in:
parent
99839476c3
commit
045595b2cb
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue