MPPOrder: fix typo error
This commit is contained in:
parent
fc91b00ffb
commit
16223594be
|
@ -487,6 +487,8 @@ public class MPPOrder extends X_PP_Order implements DocAction
|
||||||
MProduct product = line.getM_Product();
|
MProduct product = line.getM_Product();
|
||||||
if (!product.isStocked())
|
if (!product.isStocked())
|
||||||
{
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
BigDecimal ordered = Env.ZERO;
|
BigDecimal ordered = Env.ZERO;
|
||||||
BigDecimal reserved = difference;
|
BigDecimal reserved = difference;
|
||||||
int M_Locator_ID = getM_Locator_ID(ordered);
|
int M_Locator_ID = getM_Locator_ID(ordered);
|
||||||
|
@ -497,7 +499,6 @@ public class MPPOrder extends X_PP_Order implements DocAction
|
||||||
{
|
{
|
||||||
throw new AdempiereException();
|
throw new AdempiereException();
|
||||||
}
|
}
|
||||||
} // stocked
|
|
||||||
// update line
|
// update line
|
||||||
line.setQtyReserved(line.getQtyReserved().add(difference));
|
line.setQtyReserved(line.getQtyReserved().add(difference));
|
||||||
line.saveEx(get_TrxName());
|
line.saveEx(get_TrxName());
|
||||||
|
|
Loading…
Reference in New Issue