From: Jason Boyer Date: Mon, 29 Oct 2018 14:53:41 +0000 (-0400) Subject: LP1800484: Substitute 0 for missing Totals values X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e11d48dd14bd2ca57b5ca5920e82816ba47b284e;p=evergreen%2Fmasslnc.git 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 --- 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}}