tax calc fixed
This commit is contained in:
@@ -281,8 +281,8 @@ class Sale < ApplicationRecord
|
|||||||
# sale_tax.tax_payable_amount = total_taxable * tax.rate
|
# sale_tax.tax_payable_amount = total_taxable * tax.rate
|
||||||
|
|
||||||
# substract , to give after discount
|
# substract , to give after discount
|
||||||
total_taxable = total_taxable - total_discount
|
total_tax = total_taxable - total_discount
|
||||||
sale_tax.tax_payable_amount = total_taxable * tax.rate / 100
|
sale_tax.tax_payable_amount = total_tax * tax.rate / 100
|
||||||
#new taxable amount is standard rule for step by step
|
#new taxable amount is standard rule for step by step
|
||||||
# total_taxable = total_taxable + sale_tax.tax_payable_amount
|
# total_taxable = total_taxable + sale_tax.tax_payable_amount
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user