Merge pull request #14756 from rohitwaghchaure/fix_patch_for_set_salary_component_properties

[Fix] Patch
This commit is contained in:
rohitwaghchaure 2018-06-29 19:02:38 +05:30 committed by GitHub
commit c5183b7c2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,9 @@
import frappe
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=0 where type='Deduction'")