From: senator Date: Mon, 12 Apr 2010 17:26:37 +0000 (+0000) Subject: Acq: Add a pane to show related invoices on provider interface X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8c31930b0ccb202e92cfe67dcfbc96b9b8900e14;p=evergreen%2Fmasslnc.git Acq: Add a pane to show related invoices on provider interface git-svn-id: svn://svn.open-ils.org/ILS/trunk@16210 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 83662ab80e..c7ee818723 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 @@ -85,6 +85,13 @@ function drawProviderSummary(child) { phsListGrid.resetStore(); phsListGrid.loadAll({order_by:{acqphsm : 'provider'}}, {provider : providerId}); break; + case "tab-invoice": + invListGrid.resetStore(); + invListGrid.loadAll( + {"order_by": {"acqinv": "provider"}}, + {"provider": providerId} + ); + break; default: paListGrid.overrideEditWidgets.provider = new dijit.form.TextBox({disabled: 'true', value: providerId}); 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 b5892eb04b..176eadd0b0 100644 --- a/Open-ILS/web/templates/default/conify/global/acq/provider.tt2 +++ b/Open-ILS/web/templates/default/conify/global/acq/provider.tt2 @@ -29,6 +29,19 @@ function formatName(inDatum) { } } +function getInvIdent(rowIndex, item) { + if (!item) return {}; + return { + "id": this.grid.store.getValue(item, "id"), + "name": this.grid.store.getValue(item, "inv_ident") + }; +} + +function formatInvIdent(o) { + return "" + + o.name + ""; +} + function getProviderName(rowIndex, item) { if(!item) return ''; var name = this.grid.store.getValue(item, 'name'); @@ -195,6 +208,24 @@ function formatName(value) { + +
+ Invoices +
+ + + + + +
+
+
+
[% END %]