tax calc fixed

This commit is contained in:
Yan
2017-07-02 20:36:40 +06:30
parent 97c70fb72b
commit 41d91f2c0d

View File

@@ -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