From 8a5df85868cba2f659844a997c7fd9d58a818cb1 Mon Sep 17 00:00:00 2001 From: Jason Boyer Date: Mon, 29 Oct 2018 10:53:41 -0400 Subject: [PATCH] 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 13a92304b6..fa6d96fbd5 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