order line items in PO display by line item ID
authorgmc <gmc@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 4 Apr 2011 17:05:23 +0000 (17:05 +0000)
committergmc <gmc@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 4 Apr 2011 17:05:23 +0000 (17:05 +0000)
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@esilibrary.com>

git-svn-id: svn://svn.open-ils.org/ILS/trunk@19962 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/ui/default/acq/po/view_po.js

index cec6abc..ee643eb 100644 (file)
@@ -399,7 +399,7 @@ function init() {
         {   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) {