The grace period is labelled "Fine grace period" in the circulation rules, but will also be used when working with suspension days. If the chargeable units (days overdue with or without closing days) is smaller than the grace period, the suspension will not be placed. So we should change the description in circulation rules probably. sub _calculate_new_debar_dt { [...] if ( $deltadays->subtract($grace)->is_positive() ) { ... place suspension restriction
After some debugging I realized that the grace period is also substracted from the overdue days before the restriction is calculated: if ( $deltadays->subtract($grace)->is_positive() ) { So we should really kill the "Fine" from "Fine grace period".
Created attachment 144095 [details] [review] Bug 31233: Amend 'fine grace period' as it's also used for suspensions The grace period setting in circulation rules is not only used for fines, but also for suspensions. So the label 'Fine grace period' is a little misleading. This patch updates it to "Fine/suspension grace period". To test: * Go to Administration > Circulation rules * Verify the description is "Fine grace period" in the big table * Apply patch * Verify the description now changed to "Fine/suspension grace period" https://bugs.koha-community.org/show_bug.cgi?id=32261
Created attachment 144114 [details] [review] Bug 31233: Amend 'fine grace period' as it's also used for suspensions The grace period setting in circulation rules is not only used for fines, but also for suspensions. So the label 'Fine grace period' is a little misleading. This patch updates it to "Fine/suspension grace period". To test: * Go to Administration > Circulation rules * Verify the description is "Fine grace period" in the big table * Apply patch * Verify the description now changed to "Fine/suspension grace period" https://bugs.koha-community.org/show_bug.cgi?id=32261 Signed-off-by: Hammat Wele <hammat.wele@inlibro.com>
Thank you, Hammat!
Created attachment 144698 [details] [review] Bug 31233: Amend 'fine grace period' as it's also used for suspensions The grace period setting in circulation rules is not only used for fines, but also for suspensions. So the label 'Fine grace period' is a little misleading. This patch updates it to "Fine/suspension grace period". To test: * Go to Administration > Circulation rules * Verify the description is "Fine grace period" in the big table * Apply patch * Verify the description now changed to "Fine/suspension grace period" https://bugs.koha-community.org/show_bug.cgi?id=32261 Signed-off-by: Hammat Wele <hammat.wele@inlibro.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Pushed to master for 23.05. Nice work everyone, thanks!
Nice work, thanks everyone! Pushed to 22.11.x for the next release.