From 060073e69ac2386f1a4a44f315780f71242adcf0 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Mon, 14 Mar 2016 16:48:50 -0400 Subject: [PATCH] LP#1551447: don't update already-customized format.selfcheck.fines Signed-off-by: Galen Charlton --- .../XXXX.data.selfcheck_fines_printing.sql | 33 +++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.selfcheck_fines_printing.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.selfcheck_fines_printing.sql index 84837be499..3e6f5d7da7 100644 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.selfcheck_fines_printing.sql +++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.selfcheck_fines_printing.sql @@ -31,6 +31,35 @@ $$ [% END %] -$$ WHERE id=13; +$$ WHERE id=13 +AND template = +$$ +[%- USE date -%] +[%- SET user = target -%] +
+ +
[% date.format %]
+
+ + [% user.family_name %], [% user.first_given_name %] +
    + [% FOR xact IN user.open_billable_transactions_summary %] +
  1. +
    Details: + [% IF xact.xact_type == 'circulation' %] + [%- helpers.get_copy_bib_basics(xact.circulation.target_copy).title -%] + [% ELSE %] + [%- xact.last_billing_type -%] + [% END %] +
    +
    Total Billed: [% xact.total_owed %]
    +
    Total Paid: [% xact.total_paid %]
    +
    Balance Owed : [% xact.balance_owed %]
    +
  2. + [% END %] +
+
+$$ +; -COMMIT; \ No newline at end of file +COMMIT; -- 2.43.2