mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-16 11:39:18 +00:00
fix: orginised code
This commit is contained in:
@@ -40,7 +40,6 @@ class IncomeTaxComputationReport(object):
|
|||||||
self.get_employee_tax_exemptions()
|
self.get_employee_tax_exemptions()
|
||||||
self.get_hra()
|
self.get_hra()
|
||||||
self.get_standard_tax_exemption()
|
self.get_standard_tax_exemption()
|
||||||
self.add_column("Total Exemption")
|
|
||||||
self.get_total_taxable_amount()
|
self.get_total_taxable_amount()
|
||||||
self.get_applicable_tax()
|
self.get_applicable_tax()
|
||||||
self.get_total_deducted_tax()
|
self.get_total_deducted_tax()
|
||||||
@@ -250,7 +249,10 @@ class IncomeTaxComputationReport(object):
|
|||||||
def get_tax_exempted_components(self):
|
def get_tax_exempted_components(self):
|
||||||
# nontaxable earning components
|
# nontaxable earning components
|
||||||
nontaxable_earning_components = [
|
nontaxable_earning_components = [
|
||||||
d.name for d in frappe.get_all("Salary Component", {"type": "Earning", "is_tax_applicable": 0, "disabled": 0})
|
d.name
|
||||||
|
for d in frappe.get_all(
|
||||||
|
"Salary Component", {"type": "Earning", "is_tax_applicable": 0, "disabled": 0}
|
||||||
|
)
|
||||||
]
|
]
|
||||||
|
|
||||||
# tax exempted deduction components
|
# tax exempted deduction components
|
||||||
@@ -396,6 +398,8 @@ class IncomeTaxComputationReport(object):
|
|||||||
emp_details["standard_tax_exemption"] = standard_exemption
|
emp_details["standard_tax_exemption"] = standard_exemption
|
||||||
self.add_to_total_exemption(emp, standard_exemption)
|
self.add_to_total_exemption(emp, standard_exemption)
|
||||||
|
|
||||||
|
self.add_column("Total Exemption")
|
||||||
|
|
||||||
def get_total_taxable_amount(self):
|
def get_total_taxable_amount(self):
|
||||||
self.add_column("Total Taxable Amount")
|
self.add_column("Total Taxable Amount")
|
||||||
for emp, emp_details in self.employees.items():
|
for emp, emp_details in self.employees.items():
|
||||||
|
|||||||
Reference in New Issue
Block a user