mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
feat: Income tax slab (#21406)
* Feat: Multiple tax as per new taxation rule * patch:for multiple tax slab, fix: payroll and exemption validation * Test: Fixture * feat: income tax slab with other charges and tax exempted deduction components * fix: added missing init file * fix: Patch fixed * fix: Patch fixed * fix: test fixes * fix: validate duplicate exemption declaration * fix: payment entry test case Co-authored-by: Anurag Mishra <mishranaman123@gmail.com>
This commit is contained in:
@@ -530,12 +530,18 @@ def make_fixtures(company=None):
|
||||
|
||||
def set_salary_components(docs):
|
||||
docs.extend([
|
||||
{'doctype': 'Salary Component', 'salary_component': 'Professional Tax', 'description': 'Professional Tax', 'type': 'Deduction'},
|
||||
{'doctype': 'Salary Component', 'salary_component': 'Provident Fund', 'description': 'Provident fund', 'type': 'Deduction'},
|
||||
{'doctype': 'Salary Component', 'salary_component': 'House Rent Allowance', 'description': 'House Rent Allowance', 'type': 'Earning'},
|
||||
{'doctype': 'Salary Component', 'salary_component': 'Basic', 'description': 'Basic', 'type': 'Earning'},
|
||||
{'doctype': 'Salary Component', 'salary_component': 'Arrear', 'description': 'Arrear', 'type': 'Earning'},
|
||||
{'doctype': 'Salary Component', 'salary_component': 'Leave Encashment', 'description': 'Leave Encashment', 'type': 'Earning'}
|
||||
{'doctype': 'Salary Component', 'salary_component': 'Professional Tax',
|
||||
'description': 'Professional Tax', 'type': 'Deduction', 'exempted_from_income_tax': 1},
|
||||
{'doctype': 'Salary Component', 'salary_component': 'Provident Fund',
|
||||
'description': 'Provident fund', 'type': 'Deduction', 'is_tax_applicable': 1},
|
||||
{'doctype': 'Salary Component', 'salary_component': 'House Rent Allowance',
|
||||
'description': 'House Rent Allowance', 'type': 'Earning', 'is_tax_applicable': 1},
|
||||
{'doctype': 'Salary Component', 'salary_component': 'Basic',
|
||||
'description': 'Basic', 'type': 'Earning', 'is_tax_applicable': 1},
|
||||
{'doctype': 'Salary Component', 'salary_component': 'Arrear',
|
||||
'description': 'Arrear', 'type': 'Earning', 'is_tax_applicable': 1},
|
||||
{'doctype': 'Salary Component', 'salary_component': 'Leave Encashment',
|
||||
'description': 'Leave Encashment', 'type': 'Earning', 'is_tax_applicable': 1}
|
||||
])
|
||||
|
||||
def set_tax_withholding_category(company):
|
||||
|
||||
Reference in New Issue
Block a user