fix: allow user to set standard deductions in income tax slab without allowing other exemptions
This commit is contained in:
@@ -67,7 +67,6 @@
|
||||
"label": "Disabled"
|
||||
},
|
||||
{
|
||||
"depends_on": "allow_tax_exemption",
|
||||
"fieldname": "standard_tax_exemption_amount",
|
||||
"fieldtype": "Currency",
|
||||
"label": "Standard Tax Exemption Amount",
|
||||
@@ -104,7 +103,7 @@
|
||||
],
|
||||
"is_submittable": 1,
|
||||
"links": [],
|
||||
"modified": "2021-03-31 22:42:08.139520",
|
||||
"modified": "2023-05-01 13:42:08.139520",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Payroll",
|
||||
"name": "Income Tax Slab",
|
||||
|
||||
@@ -1331,6 +1331,7 @@ class SalarySlip(TransactionBase):
|
||||
if declaration:
|
||||
total_exemption_amount = declaration
|
||||
|
||||
if tax_slab.standard_tax_exemption_amount:
|
||||
total_exemption_amount += flt(tax_slab.standard_tax_exemption_amount)
|
||||
|
||||
return total_exemption_amount
|
||||
|
||||
Reference in New Issue
Block a user