Skip to content

Commit

Permalink
BAH-3578 | Fix. Variable reference which causes failure of quotation …
Browse files Browse the repository at this point in the history
…creation (#49)
  • Loading branch information
mohan-13 authored Feb 14, 2024
1 parent 5fed1e8 commit f669245
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bahmni_sale/models/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ def _compute_amounts(self):
amount_tax += line.price_tax
amount_total = amount_untaxed + amount_tax

if self.discount_percentage:
tot_discount = amount_total * self.discount_percentage / 100
if order.discount_percentage:
tot_discount = amount_total * order.discount_percentage / 100
else:
tot_discount = self.discount
tot_discount = order.discount

if order.chargeable_amount > 0.0:
discount = amount_total - order.chargeable_amount
Expand Down

0 comments on commit f669245

Please sign in to comment.