[open-ils-commits] r19963 - branches/rel_2_1/Open-ILS/web/js/ui/default/acq/po (gmc)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Apr 4 13:06:47 EDT 2011


Author: gmc
Date: 2011-04-04 13:06:43 -0400 (Mon, 04 Apr 2011)
New Revision: 19963

Modified:
   branches/rel_2_1/Open-ILS/web/js/ui/default/acq/po/view_po.js
Log:
order line items in PO display by line item ID

Order was effectively random otherwise.  Use case from at least
one library indicates this change, but doesn't preclude later work
to make the sort order more flexible.

Signed-off-by: Galen Charlton <gmc at esilibrary.com>

Modified: branches/rel_2_1/Open-ILS/web/js/ui/default/acq/po/view_po.js
===================================================================
--- branches/rel_2_1/Open-ILS/web/js/ui/default/acq/po/view_po.js	2011-04-04 17:05:23 UTC (rev 19962)
+++ branches/rel_2_1/Open-ILS/web/js/ui/default/acq/po/view_po.js	2011-04-04 17:06:43 UTC (rev 19963)
@@ -399,7 +399,7 @@
         {   async: true,
             params: [
                 openils.User.authtoken, 
-                {purchase_order:poId}, 
+                [{purchase_order:poId}, {"order_by": {"jub": "id ASC"}}], 
                 {flesh_attrs:true, flesh_notes:true, flesh_cancel_reason:true, clear_marc:true}
             ],
             onresponse: function(r) {



More information about the open-ils-commits mailing list