Change amount_total to amount_untaxed
parent
762606d120
commit
449d1ded8c
|
|
@ -33,7 +33,7 @@ class SaleOrder(models.Model):
|
|||
if order.discount_type == 'fixed':
|
||||
amount = order.discount_amount
|
||||
if order.discount_type == 'percentage':
|
||||
amount = (order.amount_total * order.discount_percentage)/100
|
||||
amount = (order.amount_untaxed * order.discount_percentage)/100
|
||||
|
||||
# Create the Sale line
|
||||
Line.create({
|
||||
|
|
|
|||
Loading…
Reference in New Issue