fix in earning and deduction type field tyep
This commit is contained in:
parent
8ac5ccae0a
commit
a6eb15df4a
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'
|
||||||
|
""")
|
Loading…
x
Reference in New Issue
Block a user