hg backout dfc4781 / IDEMPIERE-1574 Sales Order Line lets Price under the Price Limit when updating
This commit is contained in:
parent
2395338c24
commit
6a4151faab
|
@ -865,7 +865,7 @@ public class MInvoiceLine extends X_C_InvoiceLine
|
|||
enforce = false;
|
||||
// Check Price Limit?
|
||||
if (enforce && getPriceLimit() != Env.ZERO
|
||||
&& getPriceEntered().compareTo(getPriceLimit()) < 0)
|
||||
&& getPriceActual().compareTo(getPriceLimit()) < 0)
|
||||
{
|
||||
log.saveError("UnderLimitPrice", "PriceEntered=" + getPriceEntered() + ", PriceLimit=" + getPriceLimit());
|
||||
return false;
|
||||
|
|
|
@ -834,7 +834,7 @@ public class MOrderLine extends X_C_OrderLine
|
|||
enforce = false;
|
||||
// Check Price Limit?
|
||||
if (enforce && getPriceLimit() != Env.ZERO
|
||||
&& getPriceEntered().compareTo(getPriceLimit()) < 0)
|
||||
&& getPriceActual().compareTo(getPriceLimit()) < 0)
|
||||
{
|
||||
log.saveError("UnderLimitPrice", "PriceEntered=" + getPriceEntered() + ", PriceLimit=" + getPriceLimit());
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue