At some point in rebasing I managed to remove the part of the code
that saved fine payments. This patch re-adds that feature. This patch
also corrects the label on the check out tab to not mention partial
names for checkouts when offline, and partial name searches are not
supported in offline circ.
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
"action" : transaction.value.action,
"barcode" : transaction.value.barcode,
"cardnumber" : transaction.value.cardnumber,
+ "amount" : transaction.value.amount,
"pending" : true,
},
});
$(document).ready(function () {
kohadb.initialize();
+ $('#header_search #circ_search .tip').text(_("Enter patron card number:"));
$('ul[aria-labelledby="drop3"]').html('<li><a class="toplinks">You cannot change your branch or logout while using offline circulation</a></li>');
my $timestamp = $cgi->param('timestamp') || '';
my $action = $cgi->param('action') || '';
my $barcode = $cgi->param('barcode') || '';
+ my $amount = $cgi->param('amount') || 0;
$barcode =~ s/^\s+//;
$barcode =~ s/\s+$//;
my $cardnumber = $cgi->param('cardnumber') || '';
$action,
$barcode,
$cardnumber,
+ $amount
);
} else {
$result = ProcessOfflineOperation(
'action' => $action,
'barcode' => $barcode,
'cardnumber' => $cardnumber,
+ 'amount' => $amount
}
);
}