From: Bill Erickson Date: Thu, 31 Jul 2014 18:45:24 +0000 (-0400) Subject: LP#1270289 sort ACQ cancel reason selectors X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6861a3156e8bb9d962f2fd5b0b66285477a85e62;p=evergreen%2Fpines.git LP#1270289 sort ACQ cancel reason selectors Sort lineitem and copy cancel reasons selectors by label. In addition to being generally useful, this helps to quick differentiate between delayed and canceled items in the list. Signed-off-by: Bill Erickson Signed-off-by: Kathy Lussier Signed-off-by: Ben Shum --- diff --git a/Open-ILS/web/js/ui/default/acq/common/li_table.js b/Open-ILS/web/js/ui/default/acq/common/li_table.js index c65bca25a3..e2fa363e9f 100644 --- a/Open-ILS/web/js/ui/default/acq/common/li_table.js +++ b/Open-ILS/web/js/ui/default/acq/common/li_table.js @@ -2536,7 +2536,8 @@ function AcqLiTable() { "fmClass": "acqlid", "parentNode": dojo.byId("acq-lit-lid-cancel-reason"), "orgLimitPerms": ["CREATE_PURCHASE_ORDER"], - "forceSync": true + "forceSync": true, + "searchOptions" : {order_by : {"acqcr":"label"}} }); widget.build( function(w, ww) { @@ -2924,7 +2925,8 @@ function AcqLiTable() { "fmClass": "jub", "parentNode": dojo.byId("acq-lit-cancel-reason-selector"), "orgLimitPerms": ["CREATE_PURCHASE_ORDER"], - "forceSync": true + "forceSync": true, + "searchOptions" : {order_by : {"acqcr":"label"}} }); widget.build( function(w, ww) { diff --git a/Open-ILS/web/js/ui/default/acq/po/view_po.js b/Open-ILS/web/js/ui/default/acq/po/view_po.js index f1ef20cc41..8a43179211 100644 --- a/Open-ILS/web/js/ui/default/acq/po/view_po.js +++ b/Open-ILS/web/js/ui/default/acq/po/view_po.js @@ -233,7 +233,8 @@ function makeCancelWidget(node, labelnode) { "fmClass": "acqpo", "parentNode": dojo.byId("acq-po-cancel-reason"), "orgLimitPerms": ["CREATE_PURCHASE_ORDER"], - "forceSync": true + "forceSync": true, + "searchOptions" : {order_by : {"acqcr":"label"}} }); widget.build( function(w, ww) {