Comment 0 for bug 1890822

Revision history for this message
Dale Rigney (drigney) wrote :

Tested in Evergreen in 3.4

PATRON_EXCEEDS_OVERDUE_COUNT threshold does not set the standing penalty until one item is checked out. If you set the PATRON_EXCEEDS_OVERDUE_COUNT threshold it appears the standing penalty is not set until the patron checks out one item. The do_checkout process calls calculate_penalties where Evergreen checks to see how many overdues the patron has. If the patron does exceed that limit Evergreen will create a PATRON_EXCEEDS_OVERDUE_COUNT standing penalty for the patron but does not apply that penalty to the current checkout.

How to test:
1) Find a patron with 2 or more overdue items.
2) set the PATRON_EXCEEDS_OVERDUE_COUNT threshold to 1
3) Checkout an item to the patron identified above.
4) The item will checkout
5) Checkout another item. That checkout will be stopped with the PATRON_EXCEEDS_OVERDUE_COUNT error message.

The standing penalty needs to be created before the first item is approved for checkout.