LP#1270289 sort ACQ cancel reason selectors
authorBill Erickson <berick@esilibrary.com>
Thu, 31 Jul 2014 18:45:24 +0000 (14:45 -0400)
committerBen Shum <bshum@biblio.org>
Thu, 7 Aug 2014 21:06:49 +0000 (17:06 -0400)
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 <berick@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/web/js/ui/default/acq/common/li_table.js
Open-ILS/web/js/ui/default/acq/po/view_po.js

index c65bca2..e2fa363 100644 (file)
@@ -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) {
index f1ef20c..8a43179 100644 (file)
@@ -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) {