blob: 8c41d5dd27b1ace1f6a99d1d17d2c4f98d859ee7 [file] [log] [blame]
Nijil6800ad52011-11-22 15:21:42 +05301def execute():
2 import webnotes
3 from webnotes.modules.module_manager import reload_doc
4
Nijil4e54d7a2011-11-24 16:18:42 +05305 reload_doc('accounts', 'doctype', 'pv_detail')
6 reload_doc('buying', 'doctype', 'po_detail')
Nijil6800ad52011-11-22 15:21:42 +05307 reload_doc('stock', 'doctype', 'purchase_receipt_detail')
Nijil Yf6a34412011-12-13 18:31:42 +05308 if webnotes.conn.sql("select name from 'tabDocField` where parent = 'PO Detail' and fieldname = 'discount'"):
9 webnotes.conn.sql("update `tabPO Detail` set discount_rate=discount")