MPPOrder: fix typo error

This commit is contained in:
teo_sarca 2009-01-16 09:06:49 +00:00
parent fc91b00ffb
commit 16223594be
1 changed files with 14 additions and 13 deletions

View File

@ -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());