From edc1e965afa19d3eba2a1664feb7482cca79bf29 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 --- Open-ILS/web/js/ui/default/staff/admin/workstation/app.js | 4 ++++ 1 file changed, 4 insertions(+) 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 16d9fb225c..6b8e4803ba 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 @@ -468,24 +468,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