IDEMPIERE-372 Improve error messages
This commit is contained in:
parent
725d6fc305
commit
9862bfb37f
|
@ -1672,7 +1672,7 @@ public class MCost extends X_M_Cost
|
||||||
{
|
{
|
||||||
if (CurrentQty.signum() < 0)
|
if (CurrentQty.signum() < 0)
|
||||||
{
|
{
|
||||||
throw new AverageCostingNegativeQtyException("Product(ID)="+getM_Product_ID()+", Current Qty="+getCurrentQty()+", New Current Qty="+CurrentQty
|
throw new AverageCostingNegativeQtyException("Product="+getM_Product().getName()+", Current Qty="+getCurrentQty()+", New Current Qty="+CurrentQty
|
||||||
+", CostElement="+ce.getName()+", Schema="+getC_AcctSchema().getName());
|
+", CostElement="+ce.getName()+", Schema="+getC_AcctSchema().getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue