IDEMPIERE-2856 Promotion Rule creating wrong order lines

This commit is contained in:
Carlos Ruiz 2015-09-16 11:41:54 +02:00
parent 095f290eed
commit c4dea23fec
1 changed files with 1 additions and 0 deletions

View File

@ -296,6 +296,7 @@ public class PromotionRule {
nol.setQty(qty);
if (discount.scale() > 2)
discount = discount.setScale(2, BigDecimal.ROUND_HALF_UP);
nol.setPriceEntered(discount.negate());
nol.setPriceActual(discount.negate());
if (ol != null && Integer.toString(ol.getLine()).endsWith("0")) {
for(int i = 0; i < 9; i++) {