From: Bill Erickson Date: Thu, 22 Mar 2012 18:09:44 +0000 (-0400) Subject: acq fund permacrud porting X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=254b695d2d4181225105af0fe074ba47e95d5f87;p=evergreen%2Fequinox.git acq fund permacrud porting Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/templates/acq/fund/list.tt2 b/Open-ILS/src/templates/acq/fund/list.tt2 index 83f2320b8d..c70e1a1dc7 100644 --- a/Open-ILS/src/templates/acq/fund/list.tt2 +++ b/Open-ILS/src/templates/acq/fund/list.tt2 @@ -139,13 +139,12 @@ -
+
diff --git a/Open-ILS/web/js/ui/default/acq/financial/list_funds.js b/Open-ILS/web/js/ui/default/acq/financial/list_funds.js index f9759fc35b..6da078a56e 100644 --- a/Open-ILS/web/js/ui/default/acq/financial/list_funds.js +++ b/Open-ILS/web/js/ui/default/acq/financial/list_funds.js @@ -31,13 +31,7 @@ var fundFleshFields = [ 'allocation_total' ]; -function getBalanceInfo(rowIndex, item) { - if(!item) return ''; - return this.grid.store.getValue(item, this.field) || 0; -} - function initPage() { - contextOrg = openils.User.user.ws_ou(); var connect = function() { @@ -87,11 +81,12 @@ function loadFundGrid(year) { var pcrud = new openils.PermaCrud(); pcrud.search('acqf', { year : year, - org : fieldmapper.aou.descendantNodeList(contextOrg, true) - }, - { flesh : 1, + org : fieldmapper.aou.descendantNodeList(contextOrg, true) }, + { streaming : true, + limit: lfGrid.displayLimit, + offset: lfGrid.displayOffset, + flesh : 1, flesh_fields : {acqf : fundFleshFields}, - streaming : true, onresponse : function(r, obj) { if(fund = openils.Util.readResponse(r)) { fundFleshFields.forEach(function(ff) {