Commit 8f69778a authored by Sebastian Kennedy's avatar Sebastian Kennedy
Browse files

Fix cuando no aplica bonus porque no llega a cantidad

parent f123dfd3
Branches
No related merge requests found
Showing with 2 additions and 1 deletion
......@@ -98,7 +98,8 @@ class sale_order(models.Model):
bonus_line, qty_rest = bonus.calculate(qty, self.pricelist_id.id,
self.partner_id.id, lines[0].price_unit)
bonus_lines.append(bonus_line)
if bonus_line:
bonus_lines.append(bonus_line)
# Si aun me queda para aplicar por producto en el restito que me quedo
if qty_rest and significant_lines['least_significant']:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment