hg backout dfc4781 / IDEMPIERE-1574 Sales Order Line lets Price under the Price Limit when updating

This commit is contained in:
Carlos Ruiz 2014-01-24 16:55:53 -05:00
parent 2395338c24
commit 6a4151faab
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;