mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-21 03:04:34 +00:00
fix in earning and deduction type field tyep
This commit is contained in:
14
erpnext/patches/mar_2012/earning_deduction_type_patch.py
Normal file
14
erpnext/patches/mar_2012/earning_deduction_type_patch.py
Normal file
@@ -0,0 +1,14 @@
|
||||
def execute():
|
||||
import webnotes
|
||||
webnotes.conn.sql("""
|
||||
UPDATE `tabDocField`
|
||||
SET fieldtype = 'Link', options = 'Deduction Type'
|
||||
WHERE parent = 'Deduction Detail'
|
||||
AND fieldname = 'd_type'
|
||||
""")
|
||||
webnotes.conn.sql("""
|
||||
UPDATE `tabDocField`
|
||||
SET fieldtype = 'Link', options = 'Earning Type'
|
||||
WHERE parent = 'Earning Detail'
|
||||
AND fieldname = 'e_type'
|
||||
""")
|
||||
Reference in New Issue
Block a user