From 7c17ab7219f5527ebb34d49cdd06022506682dd4 Mon Sep 17 00:00:00 2001 From: Dan Pearl Date: Fri, 22 Mar 2019 15:16:51 -0400 Subject: [PATCH] LP various: Make more fields available in print receipts Useful fields were not available in print receipts for several reasons. a) the documentation was incorrect; b) the value wasn't defined for the preview mechanism; c) the data wasn't accessible when rendering the receipt for printing. Fixes: LP 1820741 LP 1821047 LP 1821399 LP 1822836 LP 1822869 LP 1823071 LP 1823197 Signed-off-by: Dan Pearl --- .../share/print_templates/t_bills_current.tt2 | 25 +++++-- .../share/print_templates/t_bills_historical.tt2 | 38 +++++----- .../staff/share/print_templates/t_checkout.tt2 | 13 ++-- .../share/print_templates/t_hold_pull_list.tt2 | 18 +++-- .../share/print_templates/t_hold_shelf_slip.tt2 | 16 ++++- .../share/print_templates/t_hold_transit_slip.tt2 | 1 + .../staff/share/print_templates/t_items_out.tt2 | 21 ++++-- .../staff/share/print_templates/t_renew.tt2 | 15 +++- .../staff/share/print_templates/t_transit_slip.tt2 | 1 + .../js/ui/default/staff/admin/workstation/app.js | 83 ++++++++++++++++++---- .../web/js/ui/default/staff/circ/patron/bills.js | 28 ++++++-- .../js/ui/default/staff/circ/patron/checkout.js | 5 +- .../js/ui/default/staff/circ/patron/items_out.js | 3 + Open-ILS/web/js/ui/default/staff/circ/renew/app.js | 5 ++ .../web/js/ui/default/staff/circ/services/circ.js | 21 ++++++ 15 files changed, 227 insertions(+), 66 deletions(-) diff --git a/Open-ILS/src/templates/staff/share/print_templates/t_bills_current.tt2 b/Open-ILS/src/templates/staff/share/print_templates/t_bills_current.tt2 index cf6df6624a..5cf596ffbf 100644 --- a/Open-ILS/src/templates/staff/share/print_templates/t_bills_current.tt2 +++ b/Open-ILS/src/templates/staff/share/print_templates/t_bills_current.tt2 @@ -18,11 +18,28 @@ to this template includes: patron.has_email - Whether or not the patron has an email address patron.has_phone - Whether or not the patron has a phone number pref_ versions of all name fields (e.g. pref_family_name); -* transasctions - a list of transactions, each of which - contains: +* transasctions - a list of transactions, each of which contains: + xact.id - Bill unique id + xact.title - Copy title + xact.copy_barcode - Copy barcode + xact.xact_finish - Billing finish date and time + xact.xact_start - Billing start date and time xact.summary - information about the transaction - xact.title - Item title - xact.copy_barcode - Item barcode + xact.summary.balance_owed - Balance owed + xact.summary.last_billing_note - Last billing note + xact.summary.last_billing_type - Last billing type + xact.summary.last_payment_note - Last payment note + xact.summary.last_payment_ts - Last payment date and time + xact.summary.last_payment_type - Last payment type + xact.summary.total_owed - Total billed + xact.summary.total_paid - Total paid + xact.summary.xact_type - Billing type + xact.call_number - Information about the copy + xact.call_number.label - Copy call number + xact.call_number.prefix - Copy call number prefix + xact.call_number.suffix - Copy call number suffix + xact.call_number.owning_lib.name - The owning library's name + xact.call_number.owning_lib.shortname - The owning library's shortname --> Welcome to {{current_location.name}}!
You have the following bills: diff --git a/Open-ILS/src/templates/staff/share/print_templates/t_bills_historical.tt2 b/Open-ILS/src/templates/staff/share/print_templates/t_bills_historical.tt2 index 9c66cc9aa8..e2a844b244 100644 --- a/Open-ILS/src/templates/staff/share/print_templates/t_bills_historical.tt2 +++ b/Open-ILS/src/templates/staff/share/print_templates/t_bills_historical.tt2 @@ -19,25 +19,27 @@ to this template includes: patron.has_phone - Whether or not the patron has a phone number pref_ versions of all name fields (e.g. pref_family_name); * transasctions - a list of transactions, each of which contains: - xact.id - Bill unique id - xact.copy_barcode - Item barcode - xact.xact_finish - Billing finish date and time - xact.xact_start - Billing start date and time - xact.summary - Information about the transaction - xact.summary.balance_owed - Balance owed - xact.summary.last_billing_note - Last billing note - xact.summary.last_billing_type - Last billing type - xact.summary.last_payment_note - Last payment note - xact.summary.last_payment_ts - Last payment date and time - xact.summary.last_payment_type - Last payment type - xact.summary.total_owed - Total billed - xact.summary.total_paid - Total paid - xact.summary.xact_type - Billing type - xact.title - Item title + xact.id - Bill unique id + xact.title - Copy title + xact.copy_barcode - Copy barcode + xact.xact_finish - Billing finish date and time + xact.xact_start - Billing start date and time xact.summary - information about the transaction - xact.title - Item title - xact.copy_barcode - Item barcode - + xact.summary.balance_owed - Balance owed + xact.summary.last_billing_note - Last billing note + xact.summary.last_billing_type - Last billing type + xact.summary.last_payment_note - Last payment note + xact.summary.last_payment_ts - Last payment date and time + xact.summary.last_payment_type - Last payment type + xact.summary.total_owed - Total billed + xact.summary.total_paid - Total paid + xact.summary.xact_type - Billing type + xact.call_number - Information about the copy + xact.call_number.label - Copy call number + xact.call_number.prefix - Copy call number prefix + xact.call_number.suffix - Copy call number suffix + xact.call_number.owning_lib.name - The owning library's name + xact.call_number.owning_lib.shortname - The owning library's shortname --> Welcome to {{current_location.name}}!
You had the following bills: diff --git a/Open-ILS/src/templates/staff/share/print_templates/t_checkout.tt2 b/Open-ILS/src/templates/staff/share/print_templates/t_checkout.tt2 index 646c383c16..e617d008d0 100644 --- a/Open-ILS/src/templates/staff/share/print_templates/t_checkout.tt2 +++ b/Open-ILS/src/templates/staff/share/print_templates/t_checkout.tt2 @@ -25,10 +25,15 @@ Template for printing checkout receipts; fields available include: * circulations - list of loans made during this session. Each includes: - * title - * author - * copy.barcode - * circ.due_date + * checkout.title + * checkout.author + * checkout.copy.barcode + * checkout.copy.circ_modifier.name + * checkout.copy.call_number.label + * checkout.copy.call_number.owning_lib.name + * checkout.copy.call_number.owning_lib.shortname + * checkout.circ.due_date + * checkout.circ.renewal_remaining -->
diff --git a/Open-ILS/src/templates/staff/share/print_templates/t_hold_pull_list.tt2 b/Open-ILS/src/templates/staff/share/print_templates/t_hold_pull_list.tt2 index bd0586f704..bec957e138 100644 --- a/Open-ILS/src/templates/staff/share/print_templates/t_hold_pull_list.tt2 +++ b/Open-ILS/src/templates/staff/share/print_templates/t_hold_pull_list.tt2 @@ -1,14 +1,18 @@