[Fix] Patch

This commit is contained in:
Rohit Waghchaure
2018-06-29 17:30:29 +05:30
parent b192a4af77
commit 4178030c99

View File

@@ -1,6 +1,9 @@
import frappe import frappe
def execute(): def execute():
frappe.reload_doc('hr', 'doctype', 'salary_detail')
frappe.reload_doc('hr', 'doctype', 'salary_component')
frappe.db.sql("update `tabSalary Component` set is_payable=1, is_tax_applicable=1 where type='Earning'") frappe.db.sql("update `tabSalary Component` set is_payable=1, is_tax_applicable=1 where type='Earning'")
frappe.db.sql("update `tabSalary Component` set is_payable=0 where type='Deduction'") frappe.db.sql("update `tabSalary Component` set is_payable=0 where type='Deduction'")