CAT-54 Offline rcpt shows last 4 of barcode
authorKyle Huckins <khuckins@catalystdevworks.com>
Fri, 8 Apr 2016 21:16:41 +0000 (14:16 -0700)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
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 <khuckins@catalystdevworks.com>
Open-ILS/xul/staff_client/chrome/content/circ/offline_checkout.js

index cb1fc0a..4c5b190 100644 (file)
@@ -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() {