LP various: Make more fields available in print receipts user/dpearl/receipt_omnibus
authorDan Pearl <dpearl@cwmars.org>
Wed, 3 Apr 2019 19:51:00 +0000 (15:51 -0400)
committerDan Pearl <dpearl@cwmars.org>
Wed, 29 May 2019 16:21:04 +0000 (12:21 -0400)
Useful fields were not available in print receipts for several reasons.
a) the documentation was incorrect; b) the value wasn't defined for
the preview mechanism; c) the data wasn't accessible when rendering the
receipt for printing.

Fixes: LP 1820741
       LP 1821047
       LP 1821399
       LP 1822836
       LP 1822869
       LP 1823071
       LP 1823197

Signed-off-by: Dan Pearl <dpearl@cwmars.org>
Open-ILS/src/templates/staff/share/print_templates/t_hold_transit_slip.tt2
Open-ILS/src/templates/staff/share/print_templates/t_transit_slip.tt2
Open-ILS/web/js/ui/default/staff/admin/workstation/app.js

index 8aecd85..02284a9 100644 (file)
@@ -11,6 +11,7 @@ Template for printing hold transit slips. Fields include:
 * dest_courier_code - from lib.courier_code library setting
 * hold.behind_desk
 * copy.barcode
+* copy.status.name - Transit copy status
 * title
 * patron.family_name
 * patron.first_given_name
index bee4573..84dc413 100644 (file)
@@ -10,6 +10,7 @@ Template for printing a transit slip. Fields include:
 * dest_address.post_code
 * dest_courier_code - from lib.courier_code library setting
 * copy.barcode
+* copy.status.name - Transit copy status
 * title
 * author
 -->
index cb5ab62..ba00d4a 100644 (file)
@@ -430,6 +430,9 @@ function($scope , $q , egCore , ngToast) {
 
     var seed_copy = {
         barcode : '33434322323',
+        status : {
+            name : 'In transit'
+            };
         call_number : {
             label : '636.8 JON',
             record : {