From e9a62d1236adbe398932a843c7155e1dff42d874 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 23 Jul 2012 11:46:37 +0530 Subject: [PATCH 01/10] reload trial balance report --- .../search_criteria/trial_balance/trial_balance.txt | 3 +-- erpnext/patches/july_2012/sync_trial_balance.py | 4 ++++ erpnext/patches/patch_list.py | 6 ++++++ 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 erpnext/patches/july_2012/sync_trial_balance.py diff --git a/erpnext/accounts/search_criteria/trial_balance/trial_balance.txt b/erpnext/accounts/search_criteria/trial_balance/trial_balance.txt index 63e7b4950d..175c8e60a4 100644 --- a/erpnext/accounts/search_criteria/trial_balance/trial_balance.txt +++ b/erpnext/accounts/search_criteria/trial_balance/trial_balance.txt @@ -5,7 +5,7 @@ { 'creation': '2012-04-03 12:49:53', 'docstatus': 0, - 'modified': '2012-04-03 12:49:53', + 'modified': '2012-07-23 11:49:53', 'modified_by': u'Administrator', 'owner': u'Administrator' }, @@ -14,7 +14,6 @@ { 'columns': u'Account\x01ID', 'criteria_name': u'Trial Balance', - 'description': u'Trial Balance', 'dis_filters': u'transaction_date', 'doc_type': u'Account', 'doctype': 'Search Criteria', diff --git a/erpnext/patches/july_2012/sync_trial_balance.py b/erpnext/patches/july_2012/sync_trial_balance.py new file mode 100644 index 0000000000..41e4cdf49f --- /dev/null +++ b/erpnext/patches/july_2012/sync_trial_balance.py @@ -0,0 +1,4 @@ +def execute(): + import webnotes + from webnotes.modules import reload_doc + reload_doc('accounts', 'search_criteria', 'trial_balance') \ No newline at end of file diff --git a/erpnext/patches/patch_list.py b/erpnext/patches/patch_list.py index b538c3d7b1..b945cd8e6e 100644 --- a/erpnext/patches/patch_list.py +++ b/erpnext/patches/patch_list.py @@ -492,4 +492,10 @@ patch_list = [ 'patch_file': 'remove_event_role_owner_match', 'description': "Remove Owner match from Event DocType's Permissions" }, + { + 'patch_module': 'patches.july_2012', + 'patch_file': 'sync_trial_balance', + 'description': "sync trial balance" + }, + ] \ No newline at end of file From 44c6a5bef52bbfa7bf85c4dc35ba475ee2b069de Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 23 Jul 2012 11:54:06 +0530 Subject: [PATCH 02/10] dont display description on old report --- public/js/report-legacy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/report-legacy.js b/public/js/report-legacy.js index 0d757b629c..30ca8488e0 100644 --- a/public/js/report-legacy.js +++ b/public/js/report-legacy.js @@ -28,7 +28,7 @@ _r.ReportBuilder.prototype.run=function(){this.dt.run();} _r.ReportBuilder.prototype.clear_criteria=function(){this.column_picker.clear();this.column_picker.set_defaults();for(var i=0;i Date: Mon, 23 Jul 2012 15:03:57 +0530 Subject: [PATCH 03/10] fixes in new report: same fieldname in multiple table --- public/js/all-app.js | 2 +- public/js/all-web.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/all-app.js b/public/js/all-app.js index 6f96b3b109..24df70f3c8 100644 --- a/public/js/all-app.js +++ b/public/js/all-app.js @@ -352,7 +352,7 @@ return[me.fieldselect.$select.find('option:selected').attr('table'),me.field.df. this.add_field_option(this.filter_fields[i])}else{this.build_options();}},build_options:function(){var me=this;me.table_fields=[];var std_filters=[{fieldname:'name',fieldtype:'Data',label:'ID',parent:me.doctype},{fieldname:'modified',fieldtype:'Date',label:'Last Modified',parent:me.doctype},{fieldname:'owner',fieldtype:'Data',label:'Created By',parent:me.doctype},{fieldname:'creation',fieldtype:'Date',label:'Created On',parent:me.doctype},{fieldname:'_user_tags',fieldtype:'Data',label:'Tags',parent:me.doctype},{fieldname:'docstatus',fieldtype:'Int',label:'Doc Status',parent:me.doctype},];var doctype_obj=locals['DocType'][me.doctype];if(doctype_obj&&cint(doctype_obj.istable)){std_filters=std_filters.concat([{fieldname:'parent',fieldtype:'Data',label:'Parent',parent:me.doctype}]);} if(this.with_blank){this.$select.append($('