IDEMPIERE-1574 Sales Order Line lets Price under the Price Limit when updating
This commit is contained in:
parent
ed0d30fd31
commit
853d0727a5
|
@ -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
|
||||||
&& getPriceActual().compareTo(getPriceLimit()) < 0)
|
&& getPriceEntered().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
|
||||||
&& getPriceActual().compareTo(getPriceLimit()) < 0)
|
&& getPriceEntered().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