From ce62669b28f6d5a95154bb033db0a7086734db83 Mon Sep 17 00:00:00 2001 From: Dan Pearl Date: Fri, 22 Mar 2019 15:51:05 -0400 Subject: [PATCH] LP1821399: Implement missing fields for items_out recipt --- .../staff/share/print_templates/t_items_out.tt2 | 21 ++++++++++++++------- .../js/ui/default/staff/circ/patron/items_out.js | 3 +++ 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/Open-ILS/src/templates/staff/share/print_templates/t_items_out.tt2 b/Open-ILS/src/templates/staff/share/print_templates/t_items_out.tt2 index 2092ad950f..681450a47b 100644 --- a/Open-ILS/src/templates/staff/share/print_templates/t_items_out.tt2 +++ b/Open-ILS/src/templates/staff/share/print_templates/t_items_out.tt2 @@ -2,7 +2,8 @@ Template for printing a list of items that a patron has checked out. Fields include: -* patron - has several fields from the patron object, including a financial summary +* patron - has several fields from the patron object, including a + financial summary * first_given_name * second_given_name @@ -18,13 +19,19 @@ Fields include: * has_email - boolean value to show/hide elements on the receipt * has_phone - same as has_email -* circulations - list of current loans, including +* circulations - list of current loans, including for each + checkout - * title - * author - * call_number.label - * copy.barcode - * circ.due_date + * checkout.title + * checkout.author + * checkout.circ.due_date + * checkout.circ.renewal_remaining + * 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.copy.location.name [Shelving location] -->
diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/items_out.js b/Open-ILS/web/js/ui/default/staff/circ/patron/items_out.js index 110ead8585..b44143c030 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/items_out.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/items_out.js @@ -366,6 +366,9 @@ function($scope , $q , $routeParams , $timeout , egCore , egUser , patronSvc , title : circ.target_copy().call_number().record().wide_display_entry().title(), author : circ.target_copy().call_number().record().wide_display_entry().author() }) + // Flesh selected fields of this circulation + print_data.circulations[0].copy.call_number = + egCore.idl.toHash(circ.target_copy().call_number()); }); print_data.patron = { -- 2.11.0