<div dir="ltr"><div class="gmail-gs" style="margin:0px;padding:0px 0px 20px;width:1502px;color:rgb(0,0,0);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:medium"><div class="gmail-"><div id="gmail-:7g8" class="gmail-ii gmail-gt" style="font-size:0.875rem;direction:ltr;margin:8px 0px 0px;padding:0px"><div id="gmail-:7fp" class="gmail-a3s gmail-aXjCH" style="overflow:hidden;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:small;line-height:1.5;font-family:Arial,Helvetica,sans-serif"><div dir="ltr">Hello, we just noticed that our group penalty thresholds were not operating like we thought they were.<div><br></div><div>The documentation uses the term exceeds quite a bit.</div><div><br></div><div>Group Penalty Thresholds block circulation transactions for users who exceed maximum check out<br>limits, number of overdue items, or fines. Settings for your library are visible under<br>Administration → Local Administration→ Group Penalty Thresholds. There are four penalties<br>in use now.<br>• PATRON_EXCEEDS_FINES: Blocks new circulations and renewals if patron exceeds X in fines<br>• PATRON_EXCEEDS_OVERDUE_COUNT: Blocks new circulations if patron exceeds X overdue<br>items</div><div>...<br><div><br></div><div>My understanding of exceeds is that it is equivalent to the greater than operator.  But it seems as if evergreen applies a greater than or equal to comparison for the thresholds.</div><div><br></div><div>We have (Running 3.3) a exceeds fines threshold set to 29.99 since we wanted everyone owing $30 or more to get the block, but just noticed that a customer that owes exactly $29.99 received the block.</div><div><br></div><div>I looked at the penalty calculation sql function, and it seems to be using >= and not just >.</div><div><a href="https://git.evergreen-ils.org/?p=Evergreen.git;a=blob;f=Open-ILS/src/sql/Pg/100.circ_matrix.sql;hb=HEAD#l744" target="_blank">https://git.evergreen-ils.org/?p=Evergreen.git;a=blob;f=Open-ILS/src/sql/Pg/100.circ_matrix.sql;hb=HEAD#l744</a><br></div><div><br></div><div>So I'm wondering if</div><div><ol><li style="margin-left:15px">My understanding of the term exceed is wrong.</li><li style="margin-left:15px">I'm not understanding the code correctly and it isn't using >=.</li><li style="margin-left:15px">The code is wrong and it should just be greater than.</li><li style="margin-left:15px">The documentation is wrong and should say "equals or exceeds the threshold".</li></ol><div>Thanks</div></div><font color="#888888"><div>Josh</div><div><br></div><div><br></div></font></div></div></div></div></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Josh Stompro - IT Director</div><div>Lake Agassiz Regional Library<br></div><div>Desk: 218-233-3757 Ext 139</div><div>Cell: 218-790-2110</div></div></div></div></div></div>