This commit is contained in:
Nijil Y 2011-12-13 18:31:42 +05:30
parent 8fb260504a
commit f6a3441d99

View File

@ -5,3 +5,5 @@ def execute():
reload_doc('accounts', 'doctype', 'pv_detail')
reload_doc('buying', 'doctype', 'po_detail')
reload_doc('stock', 'doctype', 'purchase_receipt_detail')
if webnotes.conn.sql("select name from 'tabDocField` where parent = 'PO Detail' and fieldname = 'discount'"):
webnotes.conn.sql("update `tabPO Detail` set discount_rate=discount")