JBAS-JBAS-1728 SCKO email receipt lib phone
authorBill Erickson <berickxx@gmail.com>
Tue, 28 Nov 2017 19:06:46 +0000 (14:06 -0500)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
KCLS/sql/schema/deploy/selfcheck-email-receipts.sql

index 9304804..91db093 100644 (file)
@@ -31,10 +31,14 @@ VALUES (
     $email_receipt_template$
 [%- USE date -%]
 [%- user = target.0.usr -%]
+[%- SET lib = target.0.circ_lib -%]
 To: [%- params.recipient_email || user.email %]
 From: [%- params.sender_email || helpers.get_org_setting(target.0.circ_lib.id, 'org.bounced_emails') || lib.email || default_sender %]
 Subject: Checkout Receipt
 
+[% lib.name %]
+[% lib.phone %]
+
 Dear [% user.first_given_name %],
 
 You checked out the following items:
@@ -46,7 +50,6 @@ You checked out the following items:
      Call Number: [% circ.target_copy.call_number.label %]
      Barcode: [% circ.target_copy.barcode %]
      Due Date: [% date.format(helpers.format_date(circ.due_date), '%m/%d/%Y') %]
-     Library: [% circ.circ_lib.name %]
 
 [% END %]