mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 23:52:57 +00:00
[Fix] Patch
This commit is contained in:
@@ -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'")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user