From e08249f3d5a6a72a83c7f58b579553b84218ab82 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 13 Sep 2012 15:39:34 +0530 Subject: [PATCH] allow multisort with selectable sort order --- erpnext/stock/search_criteria/stock_ledger/stock_ledger.txt | 6 +++--- public/js/all-app.js | 2 +- public/js/all-web.js | 2 +- public/js/report-legacy.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/erpnext/stock/search_criteria/stock_ledger/stock_ledger.txt b/erpnext/stock/search_criteria/stock_ledger/stock_ledger.txt index 5f9cb8cead..b80578ef0c 100644 --- a/erpnext/stock/search_criteria/stock_ledger/stock_ledger.txt +++ b/erpnext/stock/search_criteria/stock_ledger/stock_ledger.txt @@ -5,7 +5,7 @@ { 'creation': '2012-09-13 15:18:44', 'docstatus': 0, - 'modified': '2012-09-13 15:19:44', + 'modified': '2012-09-13 15:38:45', 'modified_by': u'Administrator', 'owner': u'Administrator' }, @@ -23,8 +23,8 @@ 'module': u'Stock', 'name': '__common__', 'page_len': 50, - 'sort_by': u'`tabStock Ledger Entry`.`posting_date` DESC, `tabStock Ledger Entry`.`posting_time` DESC, `tabStock Ledger Entry`.`name` DESC', - 'sort_order': u'DESC', + 'sort_by': u'`tabStock Ledger Entry`.`posting_date`, `tabStock Ledger Entry`.`posting_time`, `tabStock Ledger Entry`.`name`', + 'sort_order': u'ASC', 'standard': u'Yes' }, diff --git a/public/js/all-app.js b/public/js/all-app.js index 18eeac0518..c8548a72ac 100644 --- a/public/js/all-app.js +++ b/public/js/all-app.js @@ -400,7 +400,7 @@ wn.request.call({args:args,success:opts.callback,error:opts.error,btn:opts.btn,f * lib/js/core.js */ if(!console){var console={log:function(txt){}}} -window._version_number="1e94c62f61174cfb7f98c2bdd377674ef06b81eff2e4d1c2dff88107";$(document).ready(function(){wn.assets.check();wn.provide('wn.app');$.extend(wn.app,new wn.Application());}); +window._version_number="6123c7881505af8bdcadcac363d143df24a587186c90a50f40a97664";$(document).ready(function(){wn.assets.check();wn.provide('wn.app');$.extend(wn.app,new wn.Application());}); /* * lib/js/legacy/globals.js diff --git a/public/js/all-web.js b/public/js/all-web.js index b2ba636fd2..fa7fd11a7b 100644 --- a/public/js/all-web.js +++ b/public/js/all-web.js @@ -287,7 +287,7 @@ wn.request.call({args:args,success:opts.callback,error:opts.error,btn:opts.btn,f * lib/js/core.js */ if(!console){var console={log:function(txt){}}} -window._version_number="1e94c62f61174cfb7f98c2bdd377674ef06b81eff2e4d1c2dff88107";$(document).ready(function(){wn.assets.check();wn.provide('wn.app');$.extend(wn.app,new wn.Application());}); +window._version_number="6123c7881505af8bdcadcac363d143df24a587186c90a50f40a97664";$(document).ready(function(){wn.assets.check();wn.provide('wn.app');$.extend(wn.app,new wn.Application());}); /* * lib/js/legacy/globals.js diff --git a/public/js/report-legacy.js b/public/js/report-legacy.js index 925386e539..acf91bcfb2 100644 --- a/public/js/report-legacy.js +++ b/public/js/report-legacy.js @@ -171,7 +171,7 @@ _r.DataTable.prototype.set_asc=function(icon){this.sort_icon.src='images/lib/ico _r.DataTable.prototype.set_sort_option_disabled=function(label,disabled){var s=this.sort_sel;if(disabled){for(var i=0;i