IDEMPIERE-1574 Sales Order Line lets Price under the Price Limit when updating

This commit is contained in:
Jesús García 2013-12-13 12:58:42 -05:00
parent ed0d30fd31
commit 853d0727a5
2 changed files with 2 additions and 2 deletions

View File

@ -865,7 +865,7 @@ public class MInvoiceLine extends X_C_InvoiceLine
enforce = false;
// Check Price Limit?
if (enforce && getPriceLimit() != Env.ZERO
&& getPriceActual().compareTo(getPriceLimit()) < 0)
&& getPriceEntered().compareTo(getPriceLimit()) < 0)
{
log.saveError("UnderLimitPrice", "PriceEntered=" + getPriceEntered() + ", PriceLimit=" + getPriceLimit());
return false;

View File

@ -834,7 +834,7 @@ public class MOrderLine extends X_C_OrderLine
enforce = false;
// Check Price Limit?
if (enforce && getPriceLimit() != Env.ZERO
&& getPriceActual().compareTo(getPriceLimit()) < 0)
&& getPriceEntered().compareTo(getPriceLimit()) < 0)
{
log.saveError("UnderLimitPrice", "PriceEntered=" + getPriceEntered() + ", PriceLimit=" + getPriceLimit());
return false;