mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-25 14:11:45 +01:00
Create columns for custom fields in new table Salary Detail and Component
This commit is contained in:
@@ -9,4 +9,8 @@ def execute():
|
||||
for dt in ("Salary Structure Earning", "Salary Structure Deduction", "Salary Slip Earning",
|
||||
"Salary Slip Deduction", "Earning Type", "Deduction Type"):
|
||||
frappe.delete_doc("DocType", dt)
|
||||
|
||||
|
||||
|
||||
for d in frappe.db.sql("""select name from `tabCustom Field`
|
||||
where dt in ('Salary Detail', 'Salary Component')"""):
|
||||
frappe.get_doc("Custom Field", d[0]).save()
|
||||
Reference in New Issue
Block a user