From 94a6c7e8ac4622f7d441f421e1121a90c6bf0635 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 9 Jul 2012 16:06:53 +0530 Subject: [PATCH] changes in reset_series --- erpnext/utilities/cleanup_data.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/erpnext/utilities/cleanup_data.py b/erpnext/utilities/cleanup_data.py index bc6ea0a83b..60b54eca42 100644 --- a/erpnext/utilities/cleanup_data.py +++ b/erpnext/utilities/cleanup_data.py @@ -110,11 +110,10 @@ def delete_masters(): def reset_series(): # Reset series webnotes.conn.sql("""update tabSeries set current = 0 where name not in \ - ('FL', 'PERM', 'UR', '_SRCH', 'FileData/', 'TD', 'MI', 'EV', 'MIR', \ - 'DEF', '', 'TW', 'Ann/', 'Login Page/', 'DF', 'MDR', 'MDI', 'FMD/', \ - 'TMD/', 'GLMDetail', 'Event Updates/', '__NSO', '_ACB', 'UCDD/', 'EVP', \ - 'RFD/', 'INVTD', 'CWR/', 'TDI', 'CustomField', 'SRCH/C/', 'Letter/', 'MSD', \ - 'Mail/', 'AR', 'SA', 'SMSLOG/') + ('Ann/', 'BSD', 'DEF', 'DF', 'EV', 'Event Updates/', 'FileData-', \ + 'FL', 'FMD/', 'GLM Detail', 'Login Page/', 'MDI', 'MDR', 'MI', 'MIR', \ + 'PERM', 'PR', 'SRCH/C/', 'TD', 'TIC/', 'TMD/', 'TW', 'UR', '_FEED', \ + '_SRCH', '_TRIGGER', '__NSO', 'CustomField', 'Letter') """) print "Series updated"