fix: Other charges on income tax (#22797)

This commit is contained in:
Nabin Hait 2020-07-24 09:20:48 +05:30 committed by GitHub
parent 7cb1613173
commit 6bbd4d0c14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -869,10 +869,10 @@ class SalarySlip(TransactionBase):
# other taxes and charges on income tax
for d in tax_slab.other_taxes_and_charges:
if flt(d.min_taxable_income) and flt(d.min_taxable_income) > tax_amount:
if flt(d.min_taxable_income) and flt(d.min_taxable_income) > annual_taxable_earning:
continue
if flt(d.max_taxable_income) and flt(d.max_taxable_income) < tax_amount:
if flt(d.max_taxable_income) and flt(d.max_taxable_income) < annual_taxable_earning:
continue
tax_amount += tax_amount * flt(d.percent) / 100