Bug 24357

Summary: Hide checkout box when OverduesBlockCirc is set to Block
Product: Koha Reporter: Caroline Cyr La Rose <caroline.cyr-la-rose>
Component: CirculationAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: gmcharlt, kyle.m.hall
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: patron with overdue items
warning saying that patron cannot checkout after I've already scanned the item's barcode
patron with charges over the amount in NoIssuesCharge

Description Caroline Cyr La Rose 2020-01-06 21:23:00 UTC
Created attachment 96861 [details]
patron with overdue items

If OverduesBlockCirc is set to Block, the checkout box appears in the user's patron file. We can scan the barcode, but only after the item is scanned there is a message saying the patron cannot check out.

If NoIssuesCharge is enabled, and the patron owes more than the amount specified, the check out box does not appear at all. Instead, there is a message saying Cannot check out.

I think if OverduesBlockCirc is set to Block, the checkout box should be hidden, with a message Cannot check out Patron has overdue items, etc...

See screenshots 1) patron with overdue items 2) warning saying that patron cannot checkout after I've already scanned the item's barcode 3) patron with charges over the amount in NoIssuesCharge
Comment 1 Caroline Cyr La Rose 2020-01-06 21:23:35 UTC
Created attachment 96862 [details]
warning saying that patron cannot checkout after I've already scanned the item's barcode
Comment 2 Caroline Cyr La Rose 2020-01-06 21:24:03 UTC
Created attachment 96863 [details]
patron with charges over the amount in NoIssuesCharge
Comment 3 Caroline Cyr La Rose 2020-01-06 22:00:12 UTC
Steps to reproduce:

1) Go to Administration > Global system preferences
2) Search for OverduesBlockCirc
3) Set to Block
4) Save
5) Search for NoIssuesCharge
6) Enter a small amount, like 5
7) Save
8) Go to a patron's file
9) Make a checkout with a date in the past
10) The checkout box is still available; try to make another checkout; you should get a warning saying this patron cannot checkout
11) Go to another patron's file
12) Add a manual charge that is over the NoIssuesCharge amount, 10 for example
13) Go to the Check out tab; notice the checkout box is not available because the patron has more outstanding charges than is allowed