From e7c4a4011f5bffd87bbf940bb5066c5ba4e62cde Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 14 Oct 2011 19:05:38 +0530 Subject: [PATCH] acc bal repost patch moved in separate file --- erpnext/patches/patch.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/erpnext/patches/patch.py b/erpnext/patches/patch.py index 489f8e25c2..5dd8b8d443 100644 --- a/erpnext/patches/patch.py +++ b/erpnext/patches/patch.py @@ -463,23 +463,3 @@ def execute(patch_no): sql("update `tabDocField` set allow_on_submit = 1 where fieldname in ('indent_details', 'po_details', 'purchase_receipt_details', 'entries', 'sales_order_details', 'delivery_note_details', 'quotation_details') and fieldtype = 'Table'") elif patch_no == 388: pass - elif patch_no == 389: - webnotes.conn.set_global('__session_status', 'stop') - webnotes.conn.set_global('__session_status_message', 'Patch is running. please wait...') - elif patch_no == 390: - comp = sql("select name from tabCompany where docstatus!=2") - fy = sql("select name from `tabFiscal Year` order by year_start_date asc") - for c in comp: - prev_fy = '' - for f in fy: - fy_obj = get_obj('Fiscal Year', f[0]) - fy_obj.doc.past_year = prev_fy - fy_obj.doc.company = c[0] - fy_obj.doc.save() - fy_obj.repost() - prev_fy = f[0] - sql("commit") - sql("start transaction") - elif patch_no == 391: - webnotes.conn.set_global('__session_status', '') - webnotes.conn.set_global('__session_status_message', '')