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>
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() {