From e11d48dd14bd2ca57b5ca5920e82816ba47b284e Mon Sep 17 00:00:00 2001 From: Jason Boyer Date: Mon, 29 Oct 2018 10:53:41 -0400 Subject: [PATCH 1/1] LP1800484: Substitute 0 for missing Totals values If nothing is returned for the Totals on the patron Bills tab, use a 0 rather than leaving the value missing. Signed-off-by: Jason Boyer Signed-off-by: Rogan Hamby Signed-off-by: Galen Charlton --- Open-ILS/src/templates/staff/circ/patron/t_bills.tt2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/templates/staff/circ/patron/t_bills.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_bills.tt2 index 69d04396c8..b2d41ccbc5 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_bills.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_bills.tt2 @@ -4,19 +4,19 @@
[% l('Total Owed:') %]
-
{{summary.balance_owed() | currency}}
+
{{(summary.balance_owed() || 0) | currency}}
[% l('Refunds Available:') %]
{{refunds_available() | currency}}
[% l('Total Billed:') %]
-
{{summary.total_owed() | currency}}
+
{{(summary.total_owed() || 0) | currency}}
[% l('Credit Available:') %]
{{patron().credit_forward_balance() | currency}}
[% l('Total Paid/Credited:') %]
-
{{summary.total_paid() | currency}}
+
{{(summary.total_paid() || 0) | currency}}
[% l('Session Voided:') %]
{{session_voided | currency}}
-- 2.43.2