From 0ba6ff39675b3bf235555524eb1bce99af8e79b9 Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 30 Mar 2010 16:15:47 +0000 Subject: [PATCH] reinstated the links for funding_source code in the fund allocations grid git-svn-id: svn://svn.open-ils.org/ILS/trunk@16057 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/ui/default/acq/financial/view_fund.js | 14 ++++++++++++++ .../web/templates/default/acq/financial/view_fund.tt2 | 19 ++++++++----------- 2 files changed, 22 insertions(+), 11 deletions(-) diff --git a/Open-ILS/web/js/ui/default/acq/financial/view_fund.js b/Open-ILS/web/js/ui/default/acq/financial/view_fund.js index 0813a59245..8a30a6c162 100644 --- a/Open-ILS/web/js/ui/default/acq/financial/view_fund.js +++ b/Open-ILS/web/js/ui/default/acq/financial/view_fund.js @@ -37,6 +37,20 @@ function getOrgInfo(rowIndex, item) { } + +function getFundingSource(rowIndex, item) { + if(item) { + var fsId = this.grid.store.getValue(item, 'funding_source'); + return openils.acq.FundingSource.retrieve(fsId); + } +} + +function formatFundingSource(fs) { + if(fs) { + return ''+fs.code()+''; + } +} + function getXferDest(rowIndex, item) { if(!item) return ''; var xfer_destination = this.grid.store.getValue(item, 'xfer_destination'); diff --git a/Open-ILS/web/templates/default/acq/financial/view_fund.tt2 b/Open-ILS/web/templates/default/acq/financial/view_fund.tt2 index 836ca7241a..a692cde141 100644 --- a/Open-ILS/web/templates/default/acq/financial/view_fund.tt2 +++ b/Open-ILS/web/templates/default/acq/financial/view_fund.tt2 @@ -1,13 +1,5 @@ [% WRAPPER 'default/base.tt2' %] - + @@ -44,8 +36,7 @@ - - + @@ -205,6 +196,12 @@ fmClass="acqfa" query="{id: '*'}" showPaginator='true'> + + + + + + -- 2.11.0