From: phasefx Date: Tue, 18 Jul 2006 14:26:38 +0000 (+0000) Subject: subtotals for checkout counts X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c700843ec060f5505b73df68c326e6f73be6cf53;p=Evergreen.git subtotals for checkout counts git-svn-id: svn://svn.open-ils.org/ILS/trunk@5059 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/patron/summary.js b/Open-ILS/xul/staff_client/server/patron/summary.js index 1ceaf736b5..5263b87937 100644 --- a/Open-ILS/xul/staff_client/server/patron/summary.js +++ b/Open-ILS/xul/staff_client/server/patron/summary.js @@ -143,11 +143,12 @@ patron.summary.prototype = { 'FM_CIRC_COUNT_RETRIEVE_VIA_USER', [ ses(), obj.patron.id() ], function(req) { - e.setAttribute('value', req.getResultObject().out ); - if (e2) e2.setAttribute('value', req.getResultObject().overdue ); - if (e3) e3.setAttribute('value', req.getResultObject().claims_returned ); - if (e4) e4.setAttribute('value', req.getResultObject().long_overdue ); - if (e5) e5.setAttribute('value', req.getResultObject().lost ); + var robj = req.getResultObject(); + e.setAttribute('value', robj.out + robj.overdue + robj.claims_returned + robj.long_overdue ); + if (e2) e2.setAttribute('value', robj.overdue ); + if (e3) e3.setAttribute('value', robj.claims_returned ); + if (e4) e4.setAttribute('value', robj.long_overdue ); + if (e5) e5.setAttribute('value', robj.lost ); } ); }; diff --git a/Open-ILS/xul/staff_client/server/patron/summary_overlay.xul b/Open-ILS/xul/staff_client/server/patron/summary_overlay.xul index b5c395a5cc..792d21f60c 100644 --- a/Open-ILS/xul/staff_client/server/patron/summary_overlay.xul +++ b/Open-ILS/xul/staff_client/server/patron/summary_overlay.xul @@ -80,23 +80,24 @@