From 853d0727a582dfd4ebdbc96b9fd0ac3746c6ca3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Garc=C3=ADa?= Date: Fri, 13 Dec 2013 12:58:42 -0500 Subject: [PATCH] IDEMPIERE-1574 Sales Order Line lets Price under the Price Limit when updating --- org.adempiere.base/src/org/compiere/model/MInvoiceLine.java | 2 +- org.adempiere.base/src/org/compiere/model/MOrderLine.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/org.adempiere.base/src/org/compiere/model/MInvoiceLine.java b/org.adempiere.base/src/org/compiere/model/MInvoiceLine.java index dd831c1b7e..93dff64ddf 100644 --- a/org.adempiere.base/src/org/compiere/model/MInvoiceLine.java +++ b/org.adempiere.base/src/org/compiere/model/MInvoiceLine.java @@ -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; diff --git a/org.adempiere.base/src/org/compiere/model/MOrderLine.java b/org.adempiere.base/src/org/compiere/model/MOrderLine.java index b9a7b31640..32e8209510 100644 --- a/org.adempiere.base/src/org/compiere/model/MOrderLine.java +++ b/org.adempiere.base/src/org/compiere/model/MOrderLine.java @@ -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;