diff --git a/app/models/sale.rb b/app/models/sale.rb index 06552010..0e767ea0 100644 --- a/app/models/sale.rb +++ b/app/models/sale.rb @@ -281,8 +281,8 @@ class Sale < ApplicationRecord # sale_tax.tax_payable_amount = total_taxable * tax.rate # substract , to give after discount - total_taxable = total_taxable - total_discount - sale_tax.tax_payable_amount = total_taxable * tax.rate / 100 + total_tax = total_taxable - total_discount + sale_tax.tax_payable_amount = total_tax * tax.rate / 100 #new taxable amount is standard rule for step by step # total_taxable = total_taxable + sale_tax.tax_payable_amount