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,17 +487,18 @@ 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())
{ {
BigDecimal ordered = Env.ZERO; continue;
BigDecimal reserved = difference; }
int M_Locator_ID = getM_Locator_ID(ordered); BigDecimal ordered = Env.ZERO;
// Update Storage BigDecimal reserved = difference;
if (!MStorage.add(getCtx(), line.getM_Warehouse_ID(), M_Locator_ID, int M_Locator_ID = getM_Locator_ID(ordered);
line.getM_Product_ID(), line.getM_AttributeSetInstance_ID(), // Update Storage
line.getM_AttributeSetInstance_ID(), Env.ZERO, reserved, ordered, get_TrxName())) if (!MStorage.add(getCtx(), line.getM_Warehouse_ID(), M_Locator_ID,
{ line.getM_Product_ID(), line.getM_AttributeSetInstance_ID(),
throw new AdempiereException(); line.getM_AttributeSetInstance_ID(), Env.ZERO, reserved, ordered, get_TrxName()))
} {
} // stocked throw new AdempiereException();
}
// update line // update line
line.setQtyReserved(line.getQtyReserved().add(difference)); line.setQtyReserved(line.getQtyReserved().add(difference));
line.saveEx(get_TrxName()); line.saveEx(get_TrxName());
@ -665,7 +666,7 @@ public class MPPOrder extends X_PP_Order implements DocAction
storages, storages,
get_TrxName()); get_TrxName());
} }
MPPOrder.createReceipt( MPPOrder.createReceipt(
this, this,
today , today ,
this.getQtyDelivered(), this.getQtyDelivered(),
@ -674,7 +675,7 @@ public class MPPOrder extends X_PP_Order implements DocAction
this.getQtyReject(), this.getQtyReject(),
this.getM_Locator_ID(), this.getM_Locator_ID(),
this.getM_AttributeSetInstance_ID(), true, get_TrxName()); this.getM_AttributeSetInstance_ID(), true, get_TrxName());
return DocAction.ACTION_None; return DocAction.ACTION_None;
} }
setProcessed(true); setProcessed(true);