From: erickson Date: Mon, 12 Apr 2010 18:59:37 +0000 (+0000) Subject: enabled paging for provider invoices tab, fixed some related data order_by defs to... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c8d5fadc90cff9a6906a1ad44c430982923d780f;p=contrib%2FConifer.git enabled paging for provider invoices tab, fixed some related data order_by defs to be more useful in the provider detail page git-svn-id: svn://svn.open-ils.org/ILS/trunk@16216 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/js/ui/default/conify/global/acq/provider.js b/Open-ILS/web/js/ui/default/conify/global/acq/provider.js index c7ee818723..e1413001c8 100644 --- a/Open-ILS/web/js/ui/default/conify/global/acq/provider.js +++ b/Open-ILS/web/js/ui/default/conify/global/acq/provider.js @@ -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; diff --git a/Open-ILS/web/templates/default/conify/global/acq/provider.tt2 b/Open-ILS/web/templates/default/conify/global/acq/provider.tt2 index 176eadd0b0..e65112383b 100644 --- a/Open-ILS/web/templates/default/conify/global/acq/provider.tt2 +++ b/Open-ILS/web/templates/default/conify/global/acq/provider.tt2 @@ -217,6 +217,7 @@ function formatName(value) { fieldOrder="['inv_ident', 'receiver', 'shipper']" suppressFields="['id', 'provider']" query="{id: '*'}" + showPaginator='true' fmClass="acqinv">