feat: Indian Standard Gratuity Rule
This commit is contained in:
parent
34a7250a2d
commit
e1464a7bf0
@ -21,6 +21,7 @@ def setup_company_independent_fixtures():
|
||||
add_permissions()
|
||||
add_custom_roles_for_reports()
|
||||
frappe.enqueue('erpnext.regional.india.setup.add_hsn_sac_codes', now=frappe.flags.in_test)
|
||||
create_standard_documents()
|
||||
add_print_formats()
|
||||
|
||||
def add_hsn_sac_codes():
|
||||
@ -793,4 +794,24 @@ def get_tds_details(accounts, fiscal_year):
|
||||
doctype="Tax Withholding Category", accounts=accounts,
|
||||
rates=[{"fiscal_year": fiscal_year, "tax_withholding_rate": 20,
|
||||
"single_threshold": 2500, "cumulative_threshold": 0}])
|
||||
]
|
||||
]
|
||||
|
||||
def create_standard_documents():
|
||||
|
||||
# Standard Indain Gratuity Rule
|
||||
|
||||
rule = frappe.new_doc("Gratuity Rule")
|
||||
rule.name = "Indian Standard Gratuity Rule"
|
||||
rule.calculate_gratuity_amount_based_on = "Current Slab"
|
||||
rule.work_experience_calculation_method = "Round Off Work Experience"
|
||||
rule.minimum_year_for_gratuity = 5
|
||||
|
||||
fraction = 15/26
|
||||
rule.append("gratuity_rule_slabs", {
|
||||
"from_year": 0,
|
||||
"to_year":0,
|
||||
"fraction_of_applicable_earnings": fraction
|
||||
})
|
||||
|
||||
rule.flags.ignore_mandatory = True
|
||||
rule.save()
|
@ -253,6 +253,4 @@ def create_standard_documents():
|
||||
rule_2.save()
|
||||
rule_3.save()
|
||||
|
||||
return rule_1, rule_2, rule_3
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user