From b49bf010786a708e2e42937289c45062a52df788 Mon Sep 17 00:00:00 2001 From: Dan Pearl Date: Fri, 22 Mar 2019 15:16:51 -0400 Subject: [PATCH] LP1821047: Add support for more fields in checkout print receipt --- .../templates/staff/share/print_templates/t_checkout.tt2 | 13 +++++++++---- Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js | 5 ++++- 2 files changed, 13 insertions(+), 5 deletions(-) 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/web/js/ui/default/staff/circ/patron/checkout.js b/Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js index 1cbb05e220..216f7ad7b4 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 @@ -309,7 +309,10 @@ function($scope , $q , $routeParams , egCore , egUser , patronSvc , call_number : egCore.idl.toHash(co.acn), title : co.title, author : co.author - }) + }); + // Flesh selected fields of this circulation + print_data.circulations[0].copy.call_number = + egCore.idl.toHash(co.acn); }; }); -- 2.11.0