IDEMPIERE-2856 Promotion Rule creating wrong order lines
This commit is contained in:
parent
095f290eed
commit
c4dea23fec
|
|
@ -296,6 +296,7 @@ public class PromotionRule {
|
||||||
nol.setQty(qty);
|
nol.setQty(qty);
|
||||||
if (discount.scale() > 2)
|
if (discount.scale() > 2)
|
||||||
discount = discount.setScale(2, BigDecimal.ROUND_HALF_UP);
|
discount = discount.setScale(2, BigDecimal.ROUND_HALF_UP);
|
||||||
|
nol.setPriceEntered(discount.negate());
|
||||||
nol.setPriceActual(discount.negate());
|
nol.setPriceActual(discount.negate());
|
||||||
if (ol != null && Integer.toString(ol.getLine()).endsWith("0")) {
|
if (ol != null && Integer.toString(ol.getLine()).endsWith("0")) {
|
||||||
for(int i = 0; i < 9; i++) {
|
for(int i = 0; i < 9; i++) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue