default filters set in debtors and creditors ledger

This commit is contained in:
Nabin Hait 2012-12-06 11:46:41 +05:30
parent 2249d9d858
commit 27184e0e05
4 changed files with 59 additions and 58 deletions

View File

@ -1,31 +1,27 @@
# Search Criteria, creditors_ledger
[ [
{
# These values are common in all dictionaries "owner": "nabin@erpnext.com",
{ "docstatus": 0,
'creation': '2012-04-03 12:49:51', "creation": "2012-05-14 18:05:41",
'docstatus': 0, "modified_by": "nabin@erpnext.com",
'modified': '2012-04-03 12:49:51', "modified": "2012-12-06 11:36:09"
'modified_by': u'Administrator', },
'owner': u'nabin@webnotestech.com' {
}, "custom_query": null,
"report_script": null,
# These values are common for all Search Criteria "page_len": 50,
{ "module": "Accounts",
'criteria_name': u"Creditor's Ledger", "standard": "Yes",
'doc_type': u'GL Entry', "sort_order": "DESC",
'doctype': 'Search Criteria', "filters": "{\"GL Entry\\u0001Voucher Type\":[],\"GL Entry\\u0001Is Cancelled\":[\"No\"],\"GL Entry\\u0001Is Opening\":[\"\"],\"GL Entry\\u0001Fiscal Year\":[\"\"]}",
'filters': u"{'GL Entry\x01Voucher Type':'','GL Entry\x01Is Cancelled':'','GL Entry\x01Is Opening':'','GL Entry\x01Fiscal Year':''}", "doc_type": "GL Entry",
'module': u'Accounts', "name": "__common__",
'name': '__common__', "doctype": "Search Criteria",
'page_len': 50, "sort_by": "`tabGL Entry`.`name`",
'sort_order': u'DESC', "criteria_name": "Creditor's Ledger"
'standard': u'Yes' },
}, {
"name": "creditors_ledger",
# Search Criteria, creditors_ledger "doctype": "Search Criteria"
{ }
'doctype': 'Search Criteria',
'name': u'creditors_ledger'
}
] ]

View File

@ -1,31 +1,27 @@
# Search Criteria, debtors_ledger
[ [
{
# These values are common in all dictionaries "owner": "nabin@erpnext.com",
{ "docstatus": 0,
'creation': '2012-04-03 12:49:51', "creation": "2012-05-14 18:05:42",
'docstatus': 0, "modified_by": "nabin@erpnext.com",
'modified': '2012-04-03 12:49:51', "modified": "2012-12-06 11:37:15"
'modified_by': u'Administrator', },
'owner': u'nabin@webnotestech.com' {
}, "custom_query": null,
"report_script": null,
# These values are common for all Search Criteria "page_len": 50,
{ "module": "Accounts",
'criteria_name': u"Debtor's Ledger", "standard": "Yes",
'doc_type': u'GL Entry', "sort_order": "DESC",
'doctype': 'Search Criteria', "filters": "{\"GL Entry\\u0001Voucher Type\":[],\"GL Entry\\u0001Is Cancelled\":[\"No\"],\"GL Entry\\u0001Is Opening\":[],\"GL Entry\\u0001Fiscal Year\":[]}",
'filters': u"{'GL Entry\x01Voucher Type':'','GL Entry\x01Is Cancelled':'No','GL Entry\x01Is Opening':'','GL Entry\x01Fiscal Year':''}", "doc_type": "GL Entry",
'module': u'Accounts', "name": "__common__",
'name': '__common__', "doctype": "Search Criteria",
'page_len': 50, "sort_by": "`tabGL Entry`.`name`",
'sort_order': u'DESC', "criteria_name": "Debtor's Ledger"
'standard': u'Yes' },
}, {
"name": "debtors_ledger",
# Search Criteria, debtors_ledger "doctype": "Search Criteria"
{ }
'doctype': 'Search Criteria',
'name': u'debtors_ledger'
}
] ]

View File

@ -0,0 +1,5 @@
def execute():
import webnotes
from webnotes.modules import reload_doc
reload_doc("accounts", "search_criteria", "debtors_ledger")
reload_doc("accounts", "search_criteria", "creditors_ledger")

View File

@ -721,4 +721,8 @@ patch_list = [
'patch_module': 'patches.december_2012', 'patch_module': 'patches.december_2012',
'patch_file': 'repost_projected_qty', 'patch_file': 'repost_projected_qty',
}, },
{
'patch_module': 'patches.december_2012',
'patch_file': 'reload_debtors_creditors_ledger',
},
] ]