We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2e1edbd + 7c7cae4 commit e2a0d25Copy full SHA for e2a0d25
sale_global_discount/models/sale_order.py
@@ -100,6 +100,9 @@ def _compute_amounts(self):
100
res = super()._compute_amounts()
101
for order in self:
102
if not order.global_discount_ids:
103
+ order.amount_untaxed_before_global_discounts = order.amount_untaxed
104
+ order.amount_total_before_global_discounts = order.amount_total
105
+ order.amount_global_discount = 0.0
106
continue
107
order._check_global_discounts_sanity()
108
amount_untaxed_before_global_discounts = order.amount_untaxed
0 commit comments