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

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Apr 4 14:01:48 EDT 2011


Author: gmc
Date: 2011-04-04 14:01:44 -0400 (Mon, 04 Apr 2011)
New Revision: 19972

Modified:
   branches/rel_2_0/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_0/Open-ILS/web/js/ui/default/acq/po/view_po.js
===================================================================
--- branches/rel_2_0/Open-ILS/web/js/ui/default/acq/po/view_po.js	2011-04-04 17:39:07 UTC (rev 19971)
+++ branches/rel_2_0/Open-ILS/web/js/ui/default/acq/po/view_po.js	2011-04-04 18:01:44 UTC (rev 19972)
@@ -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