fix: allow user to set standard deductions in income tax slab without allowing other exemptions

This commit is contained in:
Saurabh
2023-05-01 13:33:26 +05:30
parent 297facc1cb
commit c5261cde9c
2 changed files with 2 additions and 2 deletions

View File

@@ -67,7 +67,6 @@
"label": "Disabled" "label": "Disabled"
}, },
{ {
"depends_on": "allow_tax_exemption",
"fieldname": "standard_tax_exemption_amount", "fieldname": "standard_tax_exemption_amount",
"fieldtype": "Currency", "fieldtype": "Currency",
"label": "Standard Tax Exemption Amount", "label": "Standard Tax Exemption Amount",
@@ -104,7 +103,7 @@
], ],
"is_submittable": 1, "is_submittable": 1,
"links": [], "links": [],
"modified": "2021-03-31 22:42:08.139520", "modified": "2023-05-01 13:42:08.139520",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Payroll", "module": "Payroll",
"name": "Income Tax Slab", "name": "Income Tax Slab",

View File

@@ -1331,6 +1331,7 @@ class SalarySlip(TransactionBase):
if declaration: if declaration:
total_exemption_amount = declaration total_exemption_amount = declaration
if tax_slab.standard_tax_exemption_amount:
total_exemption_amount += flt(tax_slab.standard_tax_exemption_amount) total_exemption_amount += flt(tax_slab.standard_tax_exemption_amount)
return total_exemption_amount return total_exemption_amount