IDEMPIERE-2161 DiscountSchema works with every CumulativeLevel value / fix broken when AccumulationLevel is Line
This commit is contained in:
parent
12dd7d7aa2
commit
30e89568b7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue