From 2d757eab8b6523446d030c5ec769e49991ef7896 Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Wed, 11 Mar 2015 15:58:41 -0400 Subject: [PATCH] webstaff: Respect items-out tally settings Signed-off-by: Mike Rylander Signed-off-by: Galen Charlton --- Open-ILS/web/js/ui/default/staff/circ/patron/app.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/app.js b/Open-ILS/web/js/ui/default/staff/circ/patron/app.js index f80486fd46..aeea4edf4f 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/app.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/app.js @@ -22,6 +22,8 @@ angular.module('egPatronApp', ['ngRoute', 'ui.bootstrap', // specific settings from within their respective controllers egCore.env.classLoaders.aous = function() { return egCore.org.settings([ + 'circ.do_not_tally_claims_returned', + 'circ.tally_lost', 'circ.obscure_dob', 'ui.circ.show_billing_tab_on_bills', 'circ.patron_expires_soon_warning', @@ -483,6 +485,13 @@ function($q , $timeout , $location , egCore, egUser , $locale) { stats.checkouts.out = Number(stats.checkouts.out); stats.checkouts.total_out = stats.checkouts.out + stats.checkouts.overdue; + + if (!egCore.env.aous['circ.do_not_tally_claims_returned']) + stats.checkouts.total_out += stats.checkouts.claims_returned; + + if (egCore.env.aous['circ.tally_lost']) + stats.checkouts.total_out += stats.checkouts.lost + return stats; } ); -- 2.11.0