enabled paging for provider invoices tab, fixed some related data order_by defs to...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 12 Apr 2010 18:59:37 +0000 (18:59 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 12 Apr 2010 18:59:37 +0000 (18:59 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16216 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/ui/default/conify/global/acq/provider.js
Open-ILS/web/templates/default/conify/global/acq/provider.tt2

index c7ee818..e141300 100644 (file)
@@ -76,19 +76,19 @@ function drawProviderSummary(child) {
             padListGrid.overrideEditWidgets.provider = new
                 dijit.form.TextBox({disabled: 'true', value: providerId});
             padListGrid.resetStore();
-            padListGrid.loadAll({order_by:{acqlipad : 'provider'}}, {provider : providerId});
+            padListGrid.loadAll({order_by:{acqlipad : 'code'}}, {provider : providerId});
             break;
         case 'tab-hold': 
             phsListGrid.overrideEditWidgets.provider = new
                 dijit.form.TextBox({disabled: 'true', value: providerId});
             phsListGrid.overrideEditWidgets.name = name;
             phsListGrid.resetStore();
-            phsListGrid.loadAll({order_by:{acqphsm : 'provider'}}, {provider : providerId});
+            phsListGrid.loadAll({order_by:{acqphsm : 'name'}}, {provider : providerId});
             break;
         case "tab-invoice":
             invListGrid.resetStore();
             invListGrid.loadAll(
-                {"order_by": {"acqinv": "provider"}},
+                {"order_by": {"acqinv": "recv_date DESC"}},
                 {"provider": providerId}
             );
             break;
index 176eadd..e651123 100644 (file)
@@ -217,6 +217,7 @@ function formatName(value) {
                 fieldOrder="['inv_ident', 'receiver', 'shipper']"
                 suppressFields="['id', 'provider']"
                 query="{id: '*'}"
+                showPaginator='true'
                 fmClass="acqinv">
                 <thead>
                     <tr>