IDEMPIERE-210 Costing: Revert [ 1693997 ] Calculation of cost should happen when transaction complete. Fixed a regression introduce in previous revision.
This commit is contained in:
parent
b2a9801ed3
commit
69fc191cc7
|
@ -427,17 +427,19 @@ public class Doc_InOut extends Doc
|
|||
{
|
||||
costs = line.getProductCosts(as, line.getAD_Org_ID(), false); // current costs
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
costs = BigDecimal.ZERO;
|
||||
}
|
||||
|
||||
if (costs == null || costs.signum() == 0)
|
||||
{
|
||||
p_Error = "Resubmit - No Costs for " + product.getName();
|
||||
log.log(Level.WARNING, p_Error);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
costs = BigDecimal.ZERO;
|
||||
}
|
||||
|
||||
// Inventory/Asset DR
|
||||
MAccount assets = line.getAccount(ProductCost.ACCTTYPE_P_Asset, as);
|
||||
if (product.isService())
|
||||
|
|
Loading…
Reference in New Issue