From 6181513bb7ee326f9551f6e0dc1ef026333c0405 Mon Sep 17 00:00:00 2001 From: Kyle Huckins Date: Fri, 8 Apr 2016 14:16:41 -0700 Subject: [PATCH] CAT-54 Offline rcpt shows last 4 of barcode Change printing param for Patron Barcode from the entire barcode to the last four digits using substring -4. Add asterisk as filler before last 4 digits of patron barcode on receipt. Signed-off-by: Kyle Huckins --- Open-ILS/xul/staff_client/chrome/content/circ/offline_checkout.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkout.js b/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkout.js index cb1fc0ae7d..4c5b190677 100644 --- a/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkout.js +++ b/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkout.js @@ -296,11 +296,11 @@ function save_xacts() { function next_patron(cancel) { try { - + if ($('print_receipt').checked && (cancel!='cancel')) { try { var params = { - 'patron_barcode' : $('p_barcode').value, + 'patron_barcode' : "******" + $('p_barcode').value.substr(-4), 'template' : 'offline_checkout', 'printer_context' : 'offline', 'callback' : function() { -- 2.11.0