From 4eb94512a498c1b34744051ea34a84d89bba5031 Mon Sep 17 00:00:00 2001 From: Terran McCanna Date: Mon, 10 Dec 2018 15:36:05 -0500 Subject: [PATCH] PINES Custom Offline Checkout and Renew Receipts - Correct due date to not show due time. - Show 'Non-cataloged Item' text when there is no barcode. Signed-off-by: Terran McCanna --- .../share/print_templates/t_offline_checkout.tt2 | 25 ++++++---------------- .../share/print_templates/t_offline_renew.tt2 | 20 ++++------------- 2 files changed, 11 insertions(+), 34 deletions(-) diff --git a/Open-ILS/src/templates/staff/share/print_templates/t_offline_checkout.tt2 b/Open-ILS/src/templates/staff/share/print_templates/t_offline_checkout.tt2 index 292e7b4131..da2af4daa3 100644 --- a/Open-ILS/src/templates/staff/share/print_templates/t_offline_checkout.tt2 +++ b/Open-ILS/src/templates/staff/share/print_templates/t_offline_checkout.tt2 @@ -1,26 +1,15 @@ - -
-
[% l('Patron [_1]', '{{transactions[0].patron_barcode}}') %]
-
[% l('You checked out the following [_1] items:', '{{transactions.length}}') %]
+

PINES

+
You checked out the following {{transactions.length}} items:

  1. -
    [% l('Barcode: [_1] Due: [_2]', - '{{checkout.barcode}}', - '{{checkout.due_date | date:"short"}}') %]
    +
    Barcode: {{checkout.barcode}}
    + Due: {{checkout.due_date | date:"M/d/yyyy"}}
    +
    Non-cataloged Item
    + Due: {{checkout.due_date | date:"M/d/yyyy"}}

{{today | date:'short'}}
-
+ {{hold.sms_notify}} diff --git a/Open-ILS/src/templates/staff/share/print_templates/t_offline_renew.tt2 b/Open-ILS/src/templates/staff/share/print_templates/t_offline_renew.tt2 index 7bd82421e7..ba87cc170d 100644 --- a/Open-ILS/src/templates/staff/share/print_templates/t_offline_renew.tt2 +++ b/Open-ILS/src/templates/staff/share/print_templates/t_offline_renew.tt2 @@ -1,24 +1,12 @@ - -
-
[% l('You renewed the following [_1] items:', '{{transactions.length}}') %]
+

PINES

+
You renewed the following {{transactions.length}} items:

  1. -
    [% l('Barcode: [_1] Due: [_2]', - '{{checkout.barcode}}', - '{{checkout.due_date | date:"short"}}') %]
    +
    Barcode: {{checkout.barcode}}
    + Due: {{checkout.due_date | date:"M/d/yyyy"}}

{{today | date:'short'}}
-
-- 2.11.0