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;
|
enforce = false;
|
||||||
// Check Price Limit?
|
// Check Price Limit?
|
||||||
if (enforce && getPriceLimit() != Env.ZERO
|
if (enforce && getPriceLimit() != Env.ZERO
|
||||||
&& getPriceEntered().compareTo(getPriceLimit()) < 0)
|
&& getPriceActual().compareTo(getPriceLimit()) < 0)
|
||||||
{
|
{
|
||||||
log.saveError("UnderLimitPrice", "PriceEntered=" + getPriceEntered() + ", PriceLimit=" + getPriceLimit());
|
log.saveError("UnderLimitPrice", "PriceEntered=" + getPriceEntered() + ", PriceLimit=" + getPriceLimit());
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -834,7 +834,7 @@ public class MOrderLine extends X_C_OrderLine
|
||||||
enforce = false;
|
enforce = false;
|
||||||
// Check Price Limit?
|
// Check Price Limit?
|
||||||
if (enforce && getPriceLimit() != Env.ZERO
|
if (enforce && getPriceLimit() != Env.ZERO
|
||||||
&& getPriceEntered().compareTo(getPriceLimit()) < 0)
|
&& getPriceActual().compareTo(getPriceLimit()) < 0)
|
||||||
{
|
{
|
||||||
log.saveError("UnderLimitPrice", "PriceEntered=" + getPriceEntered() + ", PriceLimit=" + getPriceLimit());
|
log.saveError("UnderLimitPrice", "PriceEntered=" + getPriceEntered() + ", PriceLimit=" + getPriceLimit());
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue