From 30e89568b7e67aa722adf6b9865d0e4d22517126 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 25 Feb 2015 17:26:21 -0500 Subject: [PATCH] IDEMPIERE-2161 DiscountSchema works with every CumulativeLevel value / fix broken when AccumulationLevel is Line --- org.adempiere.base/src/org/compiere/model/MProductPricing.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.base/src/org/compiere/model/MProductPricing.java b/org.adempiere.base/src/org/compiere/model/MProductPricing.java index 71ad2c4998..d309ff80ae 100644 --- a/org.adempiere.base/src/org/compiere/model/MProductPricing.java +++ b/org.adempiere.base/src/org/compiere/model/MProductPricing.java @@ -781,7 +781,7 @@ public class MProductPricing return; MDiscountSchema sd = MDiscountSchema.get(Env.getCtx(), M_DiscountSchema_ID); // not correct - if (sd.get_ID() == 0 || (MDiscountSchema.DISCOUNTTYPE_Breaks.equals(sd.getDiscountType()) && MDiscountSchema.CUMULATIVELEVEL_Line.equals(sd.getCumulativeLevel()))) + if (sd.get_ID() == 0 || (MDiscountSchema.DISCOUNTTYPE_Breaks.equals(sd.getDiscountType()) && !MDiscountSchema.CUMULATIVELEVEL_Line.equals(sd.getCumulativeLevel()))) return; // m_discountSchema = true;