From 081a6b36bc4dbeed39ba267d68576908e2d2e2b3 Mon Sep 17 00:00:00 2001 From: Kyle Huckins Date: Fri, 27 Oct 2017 16:24:04 +0000 Subject: [PATCH] LP#1708488 Checkout Print Template Balance Owed Add Patron's money summary to Circulations in Checkout print template. Signed-off-by: Kyle Huckins Signed-off-by: Terra McCanna Signed-off-by: Galen Charlton --- Open-ILS/src/templates/staff/share/print_templates/t_checkout.tt2 | 1 + Open-ILS/web/js/ui/default/staff/admin/workstation/app.js | 7 ++++++- Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) 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 327a05ea57..9c3c6b978d 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 @@ -7,6 +7,7 @@ Template for printing checkout receipts; fields available include: * title * copy_barcode * due_date + * patron_money.balance_owed - must be grabbed from a specific circulation, e.g. circulations[0].patron_money.balance_owed -->
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 d7af363253..f7a7148e20 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 @@ -469,7 +469,12 @@ function($scope , $q , egCore , ngToast) { }, copy : seed_copy, title : seed_record.title, - author : seed_record.author + author : seed_record.author, + patron_money : { + balance_owed : "$5.00", + total_owed : "$10.10", + total_paid : "$5.10" + } }, ], diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js b/Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js index 4234f5c273..e3ad2f7281 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js @@ -264,6 +264,7 @@ function($scope , $q , $routeParams , egCore , egUser , patronSvc , if (co.circ) { print_data.circulations.push({ circ : egCore.idl.toHash(co.circ), + patron_money : egCore.idl.toHash(co.evt[0].payload.patron_money), copy : egCore.idl.toHash(co.acp), call_number : egCore.idl.toHash(co.acn), title : co.title, -- 2.11.0