From: erickson Date: Tue, 13 May 2008 02:21:42 +0000 (+0000) Subject: added fund_alloc creation to the fund detail page X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f5ac535fabd870aa00dd44c44ce8f6d4cdbd65b5;p=Evergreen.git added fund_alloc creation to the fund detail page git-svn-id: svn://svn.open-ils.org/ILS/branches/acq-experiment@9563 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/financial/view_fund.js b/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/financial/view_fund.js index d03f54a3b3..517ca9acb3 100644 --- a/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/financial/view_fund.js +++ b/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/financial/view_fund.js @@ -1,4 +1,5 @@ dojo.require("dijit.Dialog"); +dojo.require('dijit.form.FilteringSelect'); dojo.require('dijit.layout.TabContainer'); dojo.require('dijit.layout.ContentPane'); dojo.require('dojox.grid.Grid'); @@ -22,6 +23,15 @@ function getSummaryInfo(rowIndex) { } } +function createAllocation(fields) { + fields.fund = fundID; + if(isNaN(fields.percent)) fields.percent = null; + if(isNaN(fields.amount)) fields.amount = null; + //openils.acq.Fund.createAllocation(fields, resetPage); + openils.acq.Fund.createAllocation(fields, + function(r){location.href = location.href;}); +} + function getOrgInfo(rowIndex) { data = fundGrid.model.getRow(rowIndex); if(!data) return; diff --git a/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/view_fund.html b/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/view_fund.html index fdd0993b77..69e45d47f5 100644 --- a/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/view_fund.html +++ b/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/view_fund.html @@ -21,6 +21,64 @@
${_('Fund Details')}
+
+ +
+ ${('Create Allocation')} +
+ + + + + + + + + + + + + + + + + + + + + +
+ + +
+ + +
+ + +
+ +
+ +
+
+
+
+ +