From fc25b345602b337b585c1dc64e26714b03b28de8 Mon Sep 17 00:00:00 2001 From: Garry Collum Date: Wed, 23 May 2018 22:17:38 -0400 Subject: [PATCH] LP#1745232 - Bill History Receipt doesn't have Finish Date Adds xact.finish and xact.summary.last_payment to the example data. Also adds xact.summary.last_payment_ts to the template body to indicate when the last payment was made. Also adds a list of variables that can be used in the template in the template's description. To test - 1. apply the patch 2. find a patron with billings, or add some billings to a patron record. 3. make payments on some of the billings using various methods. 4. go to billing history and print the history list. Signed-off-by: Garry Collum Signed-off-by: John Amundson Signed-off-by: Jason Stephenson --- .../share/print_templates/t_bills_historical.tt2 | 24 ++++++++++++++++++---- .../js/ui/default/staff/admin/workstation/app.js | 4 ++++ 2 files changed, 24 insertions(+), 4 deletions(-) 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 6b0279dc25..3a5e4cc211 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 @@ -5,9 +5,24 @@ to this template includes: * transasctions - a list of transactions, each of which contains: - xact.summary - information about the transaction - xact.title - Copy title + current_location.name - Current location's name + current_location.shortname - Current location's shortname + today - Today's date and time + xact.id - Bill unique id 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.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 - Copy title --> Welcome to {{current_location.name}}!
@@ -19,7 +34,7 @@ You had the following bills:
- + @@ -39,7 +54,8 @@ You had the following bills: diff --git a/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js b/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js index 012eab08bd..f599bc0bbc 100644 --- a/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js +++ b/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js @@ -476,24 +476,28 @@ function($scope , $q , egCore , ngToast) { { id : 1, xact_start : new Date().toISOString(), + xact_finish : new Date().toISOString(), summary : { xact_type : 'circulation', last_billing_type : 'Overdue materials', total_owed : 1.50, last_payment_note : 'Test Note 1', last_payment_type : 'cash_payment', + last_payment_ts : new Date().toISOString(), total_paid : 0.50, balance_owed : 1.00 } }, { id : 2, xact_start : new Date().toISOString(), + xact_finish : new Date().toISOString(), summary : { xact_type : 'circulation', last_billing_type : 'Overdue materials', total_owed : 2.50, last_payment_note : 'Test Note 2', last_payment_type : 'credit_payment', + last_payment_ts : new Date().toISOString(), total_paid : 0.50, balance_owed : 2.00 } -- 2.11.0
[% l('Date:') %][% l('Billing Date:') %] {{xact.xact_start | date:$root.egDateAndTimeFormat}}
[% l('Last Payment') %]: {{xact.summary.last_payment_type}}
- {{xact.summary.last_payment_note}} + {{xact.summary.last_payment_note}}
+ {{xact.summary.last_payment_ts | date:$root.egDateAndTimeFormat}}