Determine if this item is currently out to the patron and is being
checked out again. If so, be sure not to increment "Items Out" count.
Signed-off-by: Mike Risher <mrisher@catalyte.io>
Changes to be committed:
modified: web/js/ui/default/staff/circ/patron/checkout.js
modified: web/js/ui/default/staff/circ/services/circ.js
Signed-off-by: Bill Erickson <berickxx@gmail.com>
// Avoid updating checkout counts when a checkout turns
// into a renewal via auto_renew.
- if (!co_resp.auto_renew && !params.noncat) {
+ if (!co_resp.auto_renew && !params.noncat && !options.sameCopyCheckout) {
patronSvc.patron_stats.checkouts.out++;
patronSvc.patron_stats.checkouts.total_out++;
}
function(args) {
if (sameUser) {
params.void_overdues = args.forgive_fines;
+ options.sameCopyCheckout = true;
return service.renew(params, options);
}