From: Mike Rylander Date: Wed, 11 Mar 2015 19:58:41 +0000 (-0400) Subject: webstaff: Respect items-out tally settings X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=85c25493b140c8aad87e77863525a99b8f014c1d;p=evergreen%2Fpines.git webstaff: Respect items-out tally settings Signed-off-by: Mike Rylander Signed-off-by: Galen Charlton Signed-off-by: Jason Stephenson --- 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; } );