From: Kyle Huckins Date: Fri, 8 Apr 2016 21:16:41 +0000 (-0700) Subject: CAT-54 Offline rcpt shows last 4 of barcode X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6181513bb7ee326f9551f6e0dc1ef026333c0405;p=working%2FEvergreen.git 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 --- 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() {