[Bug 23415] New: Notify patron fines when renewing
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Bug ID: 23415 Summary: Notify patron fines when renewing Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Circulation Assignee: koha-bugs@lists.koha-community.org Reporter: emmi.takkinen@outlook.com QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com, kyle.m.hall@gmail.com It is possible to renew items for patron who has fines over accepted limit on renew page or from checkout list. There should be alert to notify staff that patron has fines over limit and confirmation to renew. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@outlook.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|koha-bugs@lists.koha-commun |emmi.takkinen@outlook.com |ity.org | -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #1 from Emmi Takkinen <emmi.takkinen@outlook.com> --- Created attachment 92039 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=92039&action=edit Bug 23415: Notify patron fines when renewing It is possible to renew items for patron who has fines over accepted limit on renew page or from checkout list. This patch adds confirmation alerts to these renew actions when patron has fines over "noissuescharge" syspref. Test plan: 1. Have patron with checkouts and fines over allowed limit 2. Renew checkouts either from renew page or checkout list => renew is successful 3. Apply patch 4. Repeat steps 1 and 2 => On renew page an alert is displayed and user has to confirm renew => When renew is done from checkout list confirmation pop-up is displayed -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@outlook.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@outlook.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #92039|0 |1 is obsolete| | --- Comment #2 from Emmi Takkinen <emmi.takkinen@outlook.com> --- Created attachment 92541 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=92541&action=edit Bug 23415: Notify patron fines when renewing In previous patch error message wasn't translatable. Fixed that and made sure loading gif on checkout list works correctly after this patch is applied. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Christopher Brannon <cbrannon@cdalibrary.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cbrannon@cdalibrary.org --- Comment #3 from Christopher Brannon <cbrannon@cdalibrary.org> --- I'm trying this on a sandbox, but I am not seeing any change in either renewal process with the patch applied. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Anneli Österman <anneli.osterman@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |anneli.osterman@koha-suomi. | |fi --- Comment #4 from Anneli Österman <anneli.osterman@koha-suomi.fi> --- I also tried this patch on a sandbox and the alert was displayed on moremember.pl-page and renew.pl-page. It was not displayed on circulation.pl-page, where it should also appear. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Failed QA CC| |katrin.fischer@bsz-bw.de --- Comment #5 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Marking FQA because of Anneli's last comment. Can you please give feedback? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #6 from Anneli Österman <anneli.osterman@koha-suomi.fi> --- I tested this again using a sandbox with this bug number (using master) and it worked perfectly well on all three pages. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff --- Comment #7 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Thx anneli, do you want to add your sign off? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 ByWater Sandboxes <bws.sandboxes@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #92541|0 |1 is obsolete| | --- Comment #8 from ByWater Sandboxes <bws.sandboxes@gmail.com> --- Created attachment 98442 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=98442&action=edit Bug 23415: Notify patron fines when renewing It is possible to renew items for patron who has fines over accepted limit on renew page or from checkout list. This patch adds confirmation alerts to these renew actions when patron has fines over "noissuescharge" syspref. Test plan: 1. Have patron with checkouts and fines over allowed limit 2. Renew checkouts either from renew page or checkout list => renew is successful 3. Apply patch 4. Repeat steps 1 and 2 => On renew page an alert is displayed and user has to confirm renew => When renew is done from checkout list confirmation pop-up is displayed Signed-off-by: Anneli Österman <anneli.osterman@koha-suomi.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Anneli Österman <anneli.osterman@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA --- Comment #9 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Hi Emmi, there are some fails with the QA tools for missing filters, can you please fix? FAIL koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt FAIL filters missing_filter at line 1071 ( var amountlimit = "[% Koha.Preference('noissuescharge') %]";) missing_filter at line 1072 ( var fines = "[% fines %]";) FAIL koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt FAIL filters missing_filter at line 890 ( var amountlimit = "[% Koha.Preference('noissuescharge') %]";) missing_filter at line 891 ( var fines = "[% fines %]";) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #10 from Emmi Takkinen <emmi.takkinen@outlook.com> --- Created attachment 98634 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=98634&action=edit Bug 23415: Add missing filters -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@outlook.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 ByWater Sandboxes <bws.sandboxes@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #98442|0 |1 is obsolete| | --- Comment #11 from ByWater Sandboxes <bws.sandboxes@gmail.com> --- Created attachment 98996 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=98996&action=edit Bug 23415: Notify patron fines when renewing It is possible to renew items for patron who has fines over accepted limit on renew page or from checkout list. This patch adds confirmation alerts to these renew actions when patron has fines over "noissuescharge" syspref. Test plan: 1. Have patron with checkouts and fines over allowed limit 2. Renew checkouts either from renew page or checkout list => renew is successful 3. Apply patch 4. Repeat steps 1 and 2 => On renew page an alert is displayed and user has to confirm renew => When renew is done from checkout list confirmation pop-up is displayed Signed-off-by: Anneli Österman <anneli.osterman@koha-suomi.fi> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 ByWater Sandboxes <bws.sandboxes@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #98634|0 |1 is obsolete| | --- Comment #12 from ByWater Sandboxes <bws.sandboxes@gmail.com> --- Created attachment 98997 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=98997&action=edit Bug 23415: Add missing filters Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Kelly McElligott <kelly@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kelly@bywatersolutions.com Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA --- Comment #13 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- I am wondering if noissuecharge is the right value here. We got: OPACFineNoRenewals = fine limit for renewals in the OPAC, but nothing for staff specifically. noissuecharge = fine limit for checkouts (as name says). It's used in this patch set, but there are other complications with this one: noissuescharge Prevent patrons from checking out books if they have more than EUR in fines. HoldsInNoissuesCharge [Don't include|Include] hold charges when summing up charges for noissuescharge. ManInvInNoissuesCharge [Don't include|Include] custom debit type charges when summing up charges for noissuescharge. RentalsInNoissuesCharge [Don't include|Include] rental charges when summing up charges for noissuescharge. NoIssuesChargeGuarantees Prevent a patron from checking out if the patron has guarantees owing in total more than EUR in fines. So I think this is not covering it: + my $amountlimit = C4::Context->preference("noissuescharge"); + var fines = "[% fines | html %] We'd need the amount calculated taking all noissues* prefs into account. I think I'd prefer not using noissuecharge here, as it only speaks of checkouts and we have a distinct one for renewals. Using OPACFineNoRenewals would make sense to me, as you can still override in the staff interface. So having a 'hint' there would work. Also a little worried that this adds a confirm step - but as none of the testers complained, I think it's probably ok :) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #14 from Emmi Takkinen <emmi.takkinen@outlook.com> --- Created attachment 105893 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=105893&action=edit Bug 23415: Use OPACFineNoRenewals instead of noissuecharge Since noissuecharge is mainly fine limit for checkouts it's more logical to use value in OPACFineNoRenewals. Sponsored-by: Koha-Suomi Oy -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #15 from Emmi Takkinen <emmi.takkinen@outlook.com> --- Created attachment 105894 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=105894&action=edit Bug 23415: Display confirm dialog only once On detail page when patron has multiple holds and they are renewed from checkouts list, confirmation dialog box is displayed as many times as patron has holds. This patch reworks some code so this dialog box is displayed only once. To test: 1. Find patron with multiple holds (at least two) 2. Renew all holds from checkout list 3. Confirmation pop-up is displayed for every hold 4. Apply this patch 5. Renew again => Confirmation dialog box is displayed only once Sponsored-by: Koha-Suomi Oy -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@outlook.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@outlook.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #105894|0 |1 is obsolete| | --- Comment #16 from Emmi Takkinen <emmi.takkinen@outlook.com> --- Created attachment 108392 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108392&action=edit Bug 23415: Display confirm dialog only once On detail page when patron has multiple checkouts and they are renewed from checkouts list, confirmation dialog box is displayed as many times as patron has checkouts. This patch reworks some code so this dialog box is displayed only once. To test: 1. Find patron with multiple checkouts (at least two) 2. Renew all checkouts from checkout list 3. Confirmation pop-up is displayed for every checkout 4. Apply this patch 5. Renew again => Confirmation dialog box is displayed only once Sponsored-by: Koha-Suomi Oy -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Joonas Kylmälä <joonas.kylmala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |joonas.kylmala@helsinki.fi Status|Needs Signoff |Patch doesn't apply -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@outlook.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #98996|0 |1 is obsolete| | --- Comment #17 from Emmi Takkinen <emmi.takkinen@outlook.com> --- Created attachment 109871 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109871&action=edit Bug 23415: Notify patron fines when renewing It is possible to renew items for patron who has fines over accepted limit on renew page or from checkout list. This patch adds confirmation alerts to these renew actions when patron has fines over "noissuescharge" syspref. Test plan: 1. Have patron with checkouts and fines over allowed limit 2. Renew checkouts either from renew page or checkout list => renew is successful 3. Apply patch 4. Repeat steps 1 and 2 => On renew page an alert is displayed and user has to confirm renew => When renew is done from checkout list confirmation pop-up is displayed Signed-off-by: Anneli Österman <anneli.osterman@koha-suomi.fi> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@outlook.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #98997|0 |1 is obsolete| | --- Comment #18 from Emmi Takkinen <emmi.takkinen@outlook.com> --- Created attachment 109872 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109872&action=edit Bug 23415: Add missing filters Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@outlook.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #105893|0 |1 is obsolete| | --- Comment #19 from Emmi Takkinen <emmi.takkinen@outlook.com> --- Created attachment 109876 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109876&action=edit Bug 23415: Use OPACFineNoRenewals instead of noissuecharge Since noissuecharge is mainly fine limit for checkouts it's more logical to use value in OPACFineNoRenewals. Sponsored-by: Koha-Suomi Oy -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@outlook.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108392|0 |1 is obsolete| | --- Comment #20 from Emmi Takkinen <emmi.takkinen@outlook.com> --- Created attachment 109880 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109880&action=edit Bug 23415: Display confirm dialog only once On detail page when patron has multiple checkouts and they are renewed from checkouts list, confirmation dialog box is displayed as many times as patron has checkouts. This patch reworks some code so this dialog box is displayed only once. To test: 1. Find patron with multiple checkouts (at least two) 2. Renew all checkouts from checkout list 3. Confirmation pop-up is displayed for every checkout 4. Apply this patch 5. Renew again => Confirmation dialog box is displayed only once Sponsored-by: Koha-Suomi Oy -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@outlook.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Needs Signoff --- Comment #21 from Emmi Takkinen <emmi.takkinen@outlook.com> --- Rebased patches against current master. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Victoria Faafia <vfaafia29@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Patch doesn't apply CC| |vfaafia29@gmail.com --- Comment #22 from Victoria Faafia <vfaafia29@gmail.com> --- Applying: Bug 23415: Notify patron fines when renewing Using index info to reconstruct a base tree... M circ/circulation.pl M circ/renew.pl M koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt M koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt M koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt M koha-tmpl/intranet-tmpl/prog/js/checkouts.js Falling back to patching base and 3-way merge... Auto-merging koha-tmpl/intranet-tmpl/prog/js/checkouts.js CONFLICT (content): Merge conflict in koha-tmpl/intranet-tmpl/prog/js/checkouts.js Auto-merging koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt Auto-merging koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt Auto-merging koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt Auto-merging circ/renew.pl Auto-merging circ/circulation.pl error: Failed to merge in the changes. Patch failed at 0001 Bug 23415: Notify patron fines when renewing The copy of the patch that failed is found in: .git/rebase-apply/patch When you have resolved this problem run "git bz apply --continue". If you would prefer to skip this patch, instead run "git bz apply --skip". To restore the original branch and stop patching run "git bz apply --abort". Patch left in /tmp/Bug-23415-Notify-patron-fines-when-renewing-AHlD9r.patch -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109871|0 |1 is obsolete| | --- Comment #23 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 116919 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=116919&action=edit Bug 23415: Notify patron fines when renewing It is possible to renew items for patron who has fines over accepted limit on renew page or from checkout list. This patch adds confirmation alerts to these renew actions when patron has fines over "noissuescharge" syspref. Test plan: 1. Have patron with checkouts and fines over allowed limit 2. Renew checkouts either from renew page or checkout list => renew is successful 3. Apply patch 4. Repeat steps 1 and 2 => On renew page an alert is displayed and user has to confirm renew => When renew is done from checkout list confirmation pop-up is displayed Signed-off-by: Anneli Österman <anneli.osterman@koha-suomi.fi> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109872|0 |1 is obsolete| | --- Comment #24 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 116920 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=116920&action=edit Bug 23415: Add missing filters Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109876|0 |1 is obsolete| | --- Comment #25 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 116921 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=116921&action=edit Bug 23415: Use OPACFineNoRenewals instead of noissuecharge Since noissuecharge is mainly fine limit for checkouts it's more logical to use value in OPACFineNoRenewals. Sponsored-by: Koha-Suomi Oy -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109880|0 |1 is obsolete| | --- Comment #26 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 116922 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=116922&action=edit Bug 23415: Display confirm dialog only once On detail page when patron has multiple checkouts and they are renewed from checkouts list, confirmation dialog box is displayed as many times as patron has checkouts. This patch reworks some code so this dialog box is displayed only once. To test: 1. Find patron with multiple checkouts (at least two) 2. Renew all checkouts from checkout list 3. Confirmation pop-up is displayed for every checkout 4. Apply this patch 5. Renew again => Confirmation dialog box is displayed only once Sponsored-by: Koha-Suomi Oy -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Stina Hallin <stina.hallin@ub.lu.se> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |stina.hallin@ub.lu.se Status|Needs Signoff |Patch doesn't apply --- Comment #27 from Stina Hallin <stina.hallin@ub.lu.se> --- CONFLICT (content): Merge conflict in koha-tmpl/intranet-tmpl/prog/js/checkouts.js -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #116919|0 |1 is obsolete| | --- Comment #28 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 118175 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=118175&action=edit Bug 23415: Notify patron fines when renewing It is possible to renew items for patron who has fines over accepted limit on renew page or from checkout list. This patch adds confirmation alerts to these renew actions when patron has fines over "noissuescharge" syspref. Test plan: 1. Have patron with checkouts and fines over allowed limit 2. Renew checkouts either from renew page or checkout list => renew is successful 3. Apply patch 4. Repeat steps 1 and 2 => On renew page an alert is displayed and user has to confirm renew => When renew is done from checkout list confirmation pop-up is displayed Signed-off-by: Anneli Österman <anneli.osterman@koha-suomi.fi> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #116920|0 |1 is obsolete| | --- Comment #29 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 118176 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=118176&action=edit Bug 23415: Add missing filters Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #116921|0 |1 is obsolete| | --- Comment #30 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 118177 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=118177&action=edit Bug 23415: Use OPACFineNoRenewals instead of noissuecharge Since noissuecharge is mainly fine limit for checkouts it's more logical to use value in OPACFineNoRenewals. Sponsored-by: Koha-Suomi Oy -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #116922|0 |1 is obsolete| | --- Comment #31 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 118178 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=118178&action=edit Bug 23415: Display confirm dialog only once On detail page when patron has multiple checkouts and they are renewed from checkouts list, confirmation dialog box is displayed as many times as patron has checkouts. This patch reworks some code so this dialog box is displayed only once. To test: 1. Find patron with multiple checkouts (at least two) 2. Renew all checkouts from checkout list 3. Confirmation pop-up is displayed for every checkout 4. Apply this patch 5. Renew again => Confirmation dialog box is displayed only once Sponsored-by: Koha-Suomi Oy -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Lund University Sandbox <lubcat@ub.lu.se> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #118178|0 |1 is obsolete| | --- Comment #32 from Lund University Sandbox <lubcat@ub.lu.se> --- Created attachment 118183 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=118183&action=edit Bug 23415: Display confirm dialog only once On detail page when patron has multiple checkouts and they are renewed from checkouts list, confirmation dialog box is displayed as many times as patron has checkouts. This patch reworks some code so this dialog box is displayed only once. To test: 1. Find patron with multiple checkouts (at least two) 2. Renew all checkouts from checkout list 3. Confirmation pop-up is displayed for every checkout 4. Apply this patch 5. Renew again => Confirmation dialog box is displayed only once Sponsored-by: Koha-Suomi Oy Signed-off-by: Stina Hallin <stina.hallin@ub.lu.se> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Stina Hallin <stina.hallin@ub.lu.se> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Peter Vashchuk <stalkernoid@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #118175|0 |1 is obsolete| | --- Comment #33 from Peter Vashchuk <stalkernoid@gmail.com> --- Created attachment 119300 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=119300&action=edit Bug 23415: Notify patron fines when renewing It is possible to renew items for patron who has fines over accepted limit on renew page or from checkout list. This patch adds confirmation alerts to these renew actions when patron has fines over "noissuescharge" syspref. Test plan: 1. Have patron with checkouts and fines over allowed limit 2. Renew checkouts either from renew page or checkout list => renew is successful 3. Apply patch 4. Repeat steps 1 and 2 => On renew page an alert is displayed and user has to confirm renew => When renew is done from checkout list confirmation pop-up is displayed Signed-off-by: Anneli Österman <anneli.osterman@koha-suomi.fi> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Peter Vashchuk <stalkernoid@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #118176|0 |1 is obsolete| | --- Comment #34 from Peter Vashchuk <stalkernoid@gmail.com> --- Created attachment 119301 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=119301&action=edit Bug 23415: Add missing filters Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #35 from Peter Vashchuk <stalkernoid@gmail.com> --- Created attachment 119302 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=119302&action=edit Bug 23415: Use OPACFineNoRenewals instead of noissuecharge Since noissuecharge is mainly fine limit for checkouts it's more logical to use value in OPACFineNoRenewals. Sponsored-by: Koha-Suomi Oy Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Peter Vashchuk <stalkernoid@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #118183|0 |1 is obsolete| | --- Comment #36 from Peter Vashchuk <stalkernoid@gmail.com> --- Created attachment 119303 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=119303&action=edit Bug 23415: Display confirm dialog only once On detail page when patron has multiple checkouts and they are renewed from checkouts list, confirmation dialog box is displayed as many times as patron has checkouts. This patch reworks some code so this dialog box is displayed only once. To test: 1. Find patron with multiple checkouts (at least two) 2. Renew all checkouts from checkout list 3. Confirmation pop-up is displayed for every checkout 4. Apply this patch 5. Renew again => Confirmation dialog box is displayed only once Sponsored-by: Koha-Suomi Oy Signed-off-by: Stina Hallin <stina.hallin@ub.lu.se> Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #118177|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA CC| |kyle@bywatersolutions.com --- Comment #37 from Kyle M Hall <kyle@bywatersolutions.com> --- I think OPACFineNoRenewals needs to be renamed to FineNoRenewals or something along those lines to prevent confusion in the future. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|testopia@bugs.koha-communit |kyle@bywatersolutions.com |y.org | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #38 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- (In reply to Kyle M Hall from comment #37)
I think OPACFineNoRenewals needs to be renamed to FineNoRenewals or something along those lines to prevent confusion in the future.
Makes sense...maybe it should also be moved from OPAC preferences to Circulation preferences. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #39 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 121472 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=121472&action=edit Bug 23415: Rename OPACFineNoRenewals OPACFineNoRenewals no longer applies just to OPAC. To avoid confusion rename it as FineNoRenewals and also rename all occurences in code. To test, confirm everything works as described in previous test plans. Also prove t/db_dependent/Circulation.t -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Danyon Sewell <danyonsewell@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |danyonsewell@catalyst.net.n | |z Status|Needs Signoff |Patch doesn't apply --- Comment #40 from Danyon Sewell <danyonsewell@catalyst.net.nz> --- Patch doesn't apply. Please rebase. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #119300|0 |1 is obsolete| | --- Comment #41 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 139670 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=139670&action=edit Bug 23415: Notify patron fines when renewing It is possible to renew items for patron who has fines over accepted limit on renew page or from checkout list. This patch adds confirmation alerts to these renew actions when patron has fines over "noissuescharge" syspref. Test plan: 1. Have patron with checkouts and fines over allowed limit 2. Renew checkouts either from renew page or checkout list => renew is successful 3. Apply patch 4. Repeat steps 1 and 2 => On renew page an alert is displayed and user has to confirm renew => When renew is done from checkout list confirmation pop-up is displayed Signed-off-by: Anneli Österman <anneli.osterman@koha-suomi.fi> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #119301|0 |1 is obsolete| | --- Comment #42 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 139671 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=139671&action=edit Bug 23415: Add missing filters Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #119302|0 |1 is obsolete| | --- Comment #43 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 139672 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=139672&action=edit Bug 23415: Use OPACFineNoRenewals instead of noissuecharge Since noissuecharge is mainly fine limit for checkouts it's more logical to use value in OPACFineNoRenewals. Sponsored-by: Koha-Suomi Oy Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #119303|0 |1 is obsolete| | --- Comment #44 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 139673 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=139673&action=edit Bug 23415: Display confirm dialog only once On detail page when patron has multiple checkouts and they are renewed from checkouts list, confirmation dialog box is displayed as many times as patron has checkouts. This patch reworks some code so this dialog box is displayed only once. To test: 1. Find patron with multiple checkouts (at least two) 2. Renew all checkouts from checkout list 3. Confirmation pop-up is displayed for every checkout 4. Apply this patch 5. Renew again => Confirmation dialog box is displayed only once Sponsored-by: Koha-Suomi Oy Signed-off-by: Stina Hallin <stina.hallin@ub.lu.se> Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #121472|0 |1 is obsolete| | --- Comment #45 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 139674 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=139674&action=edit Bug 23415: Rename OPACFineNoRenewals OPACFineNoRenewals no longer applies just to OPAC. To avoid confusion rename it as FineNoRenewals and also rename all occurences in code. To test, confirm everything works as described in previous test plans. Also prove t/db_dependent/Circulation.t -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Laura <Laura.escamilla@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Laura.escamilla@bywatersolu | |tions.com --- Comment #46 from Laura <Laura.escamilla@bywatersolutions.com> --- The test plan still works but OPACFineNoRenewals is still showing as OPACFineNoRenewals and not FineNoRenewals. (In reply to Emmi Takkinen from comment #45)
Created attachment 139674 [details] [review] Bug 23415: Rename OPACFineNoRenewals
OPACFineNoRenewals no longer applies just to OPAC. To avoid confusion rename it as FineNoRenewals and also rename all occurences in code.
To test, confirm everything works as described in previous test plans.
Also prove t/db_dependent/Circulation.t
-- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #139674|0 |1 is obsolete| | --- Comment #47 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 146415 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=146415&action=edit Bug 23415: Rename OPACFineNoRenewals OPACFineNoRenewals no longer applies just to OPAC. To avoid confusion rename it as FineNoRenewals and also rename all occurences in code. To test, confirm everything works as described in previous test plans. Also prove t/db_dependent/Circulation.t -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #48 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- (In reply to Laura Escamilla from comment #46)
The test plan still works but OPACFineNoRenewals is still showing as OPACFineNoRenewals and not FineNoRenewals.
(In reply to Emmi Takkinen from comment #45)
Created attachment 139674 [details] [review] [review] Bug 23415: Rename OPACFineNoRenewals
OPACFineNoRenewals no longer applies just to OPAC. To avoid confusion rename it as FineNoRenewals and also rename all occurences in code.
To test, confirm everything works as described in previous test plans.
Also prove t/db_dependent/Circulation.t
I rebased patch and added new atomicupdate file. Could it be that patch didn't previously apply? Was syspref still named as OPACFineNoRenewals in systempreference page or was it still OPACFineNoRenewals in database and code? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 ByWater Sandboxes <bws.sandboxes@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #139670|0 |1 is obsolete| | --- Comment #49 from ByWater Sandboxes <bws.sandboxes@gmail.com> --- Created attachment 148198 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=148198&action=edit Bug 23415: Notify patron fines when renewing It is possible to renew items for patron who has fines over accepted limit on renew page or from checkout list. This patch adds confirmation alerts to these renew actions when patron has fines over "noissuescharge" syspref. Test plan: 1. Have patron with checkouts and fines over allowed limit 2. Renew checkouts either from renew page or checkout list => renew is successful 3. Apply patch 4. Repeat steps 1 and 2 => On renew page an alert is displayed and user has to confirm renew => When renew is done from checkout list confirmation pop-up is displayed Signed-off-by: Anneli Österman <anneli.osterman@koha-suomi.fi> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com> Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 ByWater Sandboxes <bws.sandboxes@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #139671|0 |1 is obsolete| | --- Comment #50 from ByWater Sandboxes <bws.sandboxes@gmail.com> --- Created attachment 148199 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=148199&action=edit Bug 23415: Add missing filters Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com> Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 ByWater Sandboxes <bws.sandboxes@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #139672|0 |1 is obsolete| | --- Comment #51 from ByWater Sandboxes <bws.sandboxes@gmail.com> --- Created attachment 148200 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=148200&action=edit Bug 23415: Use OPACFineNoRenewals instead of noissuecharge Since noissuecharge is mainly fine limit for checkouts it's more logical to use value in OPACFineNoRenewals. Sponsored-by: Koha-Suomi Oy Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com> Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 ByWater Sandboxes <bws.sandboxes@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #139673|0 |1 is obsolete| | --- Comment #52 from ByWater Sandboxes <bws.sandboxes@gmail.com> --- Created attachment 148201 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=148201&action=edit Bug 23415: Display confirm dialog only once On detail page when patron has multiple checkouts and they are renewed from checkouts list, confirmation dialog box is displayed as many times as patron has checkouts. This patch reworks some code so this dialog box is displayed only once. To test: 1. Find patron with multiple checkouts (at least two) 2. Renew all checkouts from checkout list 3. Confirmation pop-up is displayed for every checkout 4. Apply this patch 5. Renew again => Confirmation dialog box is displayed only once Sponsored-by: Koha-Suomi Oy Signed-off-by: Stina Hallin <stina.hallin@ub.lu.se> Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com> Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 ByWater Sandboxes <bws.sandboxes@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #146415|0 |1 is obsolete| | --- Comment #53 from ByWater Sandboxes <bws.sandboxes@gmail.com> --- Created attachment 148202 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=148202&action=edit Bug 23415: Rename OPACFineNoRenewals OPACFineNoRenewals no longer applies just to OPAC. To avoid confusion rename it as FineNoRenewals and also rename all occurences in code. To test, confirm everything works as described in previous test plans. Also prove t/db_dependent/Circulation.t Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Sally <sally.healey@cheshiresharedservices.gov.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sally.healey@cheshireshared | |services.gov.uk Status|Needs Signoff |Signed Off --- Comment #54 from Sally <sally.healey@cheshiresharedservices.gov.uk> --- Works as described; it shows for me as FineNoRenewals. I've signed off because all of the functionality is fine. There were a couple of formatting issues around the currency in the pop-up box: 1) The trailing full stop / period feels a bit odd when it's currency: Shows: The patron has a debt of 3.21. Perhaps: The patron has a debt of 3.21 2) If it's a round number, then pennies/cents aren't shown - it looks a bit odd: Shows: The patron has a debt of 3. Perhaps: The patron has a debt of 3.00 3) Is there any scope for adding the appropriate currency symbol? Shows: The patron has a debt of 3.21 Perhaps: The patron has a debt of £3.21 And: The patron has a debt of $3.21 And: The patron has a debt of €3.21 The other query was system preferences. OPACFineNoRenewals has been renamed to FineNoRenewals. There are two other system preferences: OPACFineNoRenewalsBlockAutoRenew and OPACFineNoRenewalsIncludeCredits The descriptions (values) of these have been updated by this bug to refer to FineNoRenewals, but should we also consider renaming the system preferences themselves to: FineNoRenewalsBlockAutoRenew and FineNoRenewalsIncludeCredits ? I realise this last point might be out of scope of the bug. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|kyle@bywatersolutions.com |testopia@bugs.koha-communit | |y.org Status|Signed Off |Patch doesn't apply --- Comment #55 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Can you please rebase? Apply? [(y)es, (n)o, (i)nteractive] y Applying: Bug 23415: Notify patron fines when renewing Applying: Bug 23415: Add missing filters Applying: Bug 23415: Use OPACFineNoRenewals instead of noissuecharge error: sha1 information is lacking or useless (koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt). error: could not build fake ancestor Patch failed at 0001 Bug 23415: Use OPACFineNoRenewals instead of noissuecharge hint: Use 'git am --show-current-patch=diff' to see the failed patch When you have resolved this problem run "git bz apply --continue". If you would prefer to skip this patch, instead run "git bz apply --skip". To restore the original branch and stop patching run "git bz apply --abort". Patch left in /tmp/Bug-23415-Use-OPACFineNoRenewals-instead-of-noissu-dlItcl.patch Please also check the fine formatting as noted by Sally in comment#54. There is now also a way to format in JS afaik. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #148198|0 |1 is obsolete| | --- Comment #56 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 152776 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=152776&action=edit Bug 23415: Notify patron fines when renewing It is possible to renew items for patron who has fines over accepted limit on renew page or from checkout list. This patch adds confirmation alerts to these renew actions when patron has fines over "noissuescharge" syspref. Test plan: 1. Have patron with checkouts and fines over allowed limit 2. Renew checkouts either from renew page or checkout list => renew is successful 3. Apply patch 4. Repeat steps 1 and 2 => On renew page an alert is displayed and user has to confirm renew => When renew is done from checkout list confirmation pop-up is displayed Signed-off-by: Anneli Österman <anneli.osterman@koha-suomi.fi> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #148199|0 |1 is obsolete| | --- Comment #57 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 152777 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=152777&action=edit Bug 23415: Add missing filters Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #148200|0 |1 is obsolete| | --- Comment #58 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 152778 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=152778&action=edit Bug 23415: Use OPACFineNoRenewals instead of noissuecharge Since noissuecharge is mainly fine limit for checkouts it's more logical to use value in OPACFineNoRenewals. Sponsored-by: Koha-Suomi Oy Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #148201|0 |1 is obsolete| | --- Comment #59 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 152779 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=152779&action=edit Bug 23415: Display confirm dialog only once On detail page when patron has multiple checkouts and they are renewed from checkouts list, confirmation dialog box is displayed as many times as patron has checkouts. This patch reworks some code so this dialog box is displayed only once. To test: 1. Find patron with multiple checkouts (at least two) 2. Renew all checkouts from checkout list 3. Confirmation pop-up is displayed for every checkout 4. Apply this patch 5. Renew again => Confirmation dialog box is displayed only once Sponsored-by: Koha-Suomi Oy Signed-off-by: Stina Hallin <stina.hallin@ub.lu.se> Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #148202|0 |1 is obsolete| | --- Comment #60 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 152780 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=152780&action=edit Bug 23415: Rename OPACFineNoRenewals OPACFineNoRenewals no longer applies just to OPAC. To avoid confusion rename it as FineNoRenewals and also rename all occurences in code. To test, confirm everything works as described in previous test plans. Also prove t/db_dependent/Circulation.t -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #61 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 152781 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=152781&action=edit Bug 23415: Add fine formatting To test: 1. Find patron with checkouts and fines over allowed limit. 2. Renew checkouts either from renew page or checkout list. => Confirm that fines are formated correctly e.g. "The patron has a debt of 20.00" not like "The patron has a debt of 20." -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Needs Signoff --- Comment #62 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Rebased patches. (In reply to Sally from comment #54)
Works as described; it shows for me as FineNoRenewals. I've signed off because all of the functionality is fine.
There were a couple of formatting issues around the currency in the pop-up box:
1) The trailing full stop / period feels a bit odd when it's currency: Shows: The patron has a debt of 3.21. Perhaps: The patron has a debt of 3.21
2) If it's a round number, then pennies/cents aren't shown - it looks a bit odd: Shows: The patron has a debt of 3. Perhaps: The patron has a debt of 3.00
These have been added in new patch.
3) Is there any scope for adding the appropriate currency symbol? Shows: The patron has a debt of 3.21 Perhaps: The patron has a debt of £3.21 And: The patron has a debt of $3.21 And: The patron has a debt of €3.21
This isn't currently possible so I left this out.
The other query was system preferences.
OPACFineNoRenewals has been renamed to FineNoRenewals. There are two other system preferences: OPACFineNoRenewalsBlockAutoRenew and OPACFineNoRenewalsIncludeCredits
The descriptions (values) of these have been updated by this bug to refer to FineNoRenewals, but should we also consider renaming the system preferences themselves to: FineNoRenewalsBlockAutoRenew and FineNoRenewalsIncludeCredits ?
I realise this last point might be out of scope of the bug. Hmm, I'm not sure if these are still used just in OPAC.
-- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Biblibre Sandboxes <sandboxes@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #152776|0 |1 is obsolete| | --- Comment #63 from Biblibre Sandboxes <sandboxes@biblibre.com> --- Created attachment 154595 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=154595&action=edit Bug 23415: Notify patron fines when renewing It is possible to renew items for patron who has fines over accepted limit on renew page or from checkout list. This patch adds confirmation alerts to these renew actions when patron has fines over "noissuescharge" syspref. Test plan: 1. Have patron with checkouts and fines over allowed limit 2. Renew checkouts either from renew page or checkout list => renew is successful 3. Apply patch 4. Repeat steps 1 and 2 => On renew page an alert is displayed and user has to confirm renew => When renew is done from checkout list confirmation pop-up is displayed Signed-off-by: Anneli Österman <anneli.osterman@koha-suomi.fi> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com> Signed-off-by: Veli-Matti <veli-matti.hakkinen@jyu.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Biblibre Sandboxes <sandboxes@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #152777|0 |1 is obsolete| | --- Comment #64 from Biblibre Sandboxes <sandboxes@biblibre.com> --- Created attachment 154596 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=154596&action=edit Bug 23415: Add missing filters Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com> Signed-off-by: Veli-Matti <veli-matti.hakkinen@jyu.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Biblibre Sandboxes <sandboxes@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #152778|0 |1 is obsolete| | --- Comment #65 from Biblibre Sandboxes <sandboxes@biblibre.com> --- Created attachment 154597 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=154597&action=edit Bug 23415: Use OPACFineNoRenewals instead of noissuecharge Since noissuecharge is mainly fine limit for checkouts it's more logical to use value in OPACFineNoRenewals. Sponsored-by: Koha-Suomi Oy Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com> Signed-off-by: Veli-Matti <veli-matti.hakkinen@jyu.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Biblibre Sandboxes <sandboxes@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #152779|0 |1 is obsolete| | --- Comment #66 from Biblibre Sandboxes <sandboxes@biblibre.com> --- Created attachment 154598 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=154598&action=edit Bug 23415: Display confirm dialog only once On detail page when patron has multiple checkouts and they are renewed from checkouts list, confirmation dialog box is displayed as many times as patron has checkouts. This patch reworks some code so this dialog box is displayed only once. To test: 1. Find patron with multiple checkouts (at least two) 2. Renew all checkouts from checkout list 3. Confirmation pop-up is displayed for every checkout 4. Apply this patch 5. Renew again => Confirmation dialog box is displayed only once Sponsored-by: Koha-Suomi Oy Signed-off-by: Stina Hallin <stina.hallin@ub.lu.se> Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com> Signed-off-by: Veli-Matti <veli-matti.hakkinen@jyu.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Biblibre Sandboxes <sandboxes@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #152780|0 |1 is obsolete| | --- Comment #67 from Biblibre Sandboxes <sandboxes@biblibre.com> --- Created attachment 154599 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=154599&action=edit Bug 23415: Rename OPACFineNoRenewals OPACFineNoRenewals no longer applies just to OPAC. To avoid confusion rename it as FineNoRenewals and also rename all occurences in code. To test, confirm everything works as described in previous test plans. Also prove t/db_dependent/Circulation.t Signed-off-by: Veli-Matti <veli-matti.hakkinen@jyu.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Biblibre Sandboxes <sandboxes@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #152781|0 |1 is obsolete| | --- Comment #68 from Biblibre Sandboxes <sandboxes@biblibre.com> --- Created attachment 154600 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=154600&action=edit Bug 23415: Add fine formatting To test: 1. Find patron with checkouts and fines over allowed limit. 2. Renew checkouts either from renew page or checkout list. => Confirm that fines are formated correctly e.g. "The patron has a debt of 20.00" not like "The patron has a debt of 20." Signed-off-by: Veli-Matti <veli-matti.hakkinen@jyu.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Veli-Matti Häkkinen <veli-matti.hakkinen@jyu.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |veli-matti.hakkinen@jyu.fi Status|Needs Signoff |Signed Off --- Comment #69 from Veli-Matti Häkkinen <veli-matti.hakkinen@jyu.fi> --- Tested and works as planned. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Patch doesn't apply CC| |martin.renvoize@ptfs-europe | |.com --- Comment #70 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Sorry guys, came to QA but we need a rebase first. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|testopia@bugs.koha-communit |martin.renvoize@ptfs-europe |y.org |.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #154595|0 |1 is obsolete| | --- Comment #71 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 158302 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=158302&action=edit Bug 23415: Notify patron fines when renewing It is possible to renew items for patron who has fines over accepted limit on renew page or from checkout list. This patch adds confirmation alerts to these renew actions when patron has fines over "noissuescharge" syspref. Test plan: 1. Have patron with checkouts and fines over allowed limit 2. Renew checkouts either from renew page or checkout list => renew is successful 3. Apply patch 4. Repeat steps 1 and 2 => On renew page an alert is displayed and user has to confirm renew => When renew is done from checkout list confirmation pop-up is displayed Signed-off-by: Anneli Österman <anneli.osterman@koha-suomi.fi> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #154596|0 |1 is obsolete| | --- Comment #72 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 158303 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=158303&action=edit Bug 23415: Add missing filters Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #154597|0 |1 is obsolete| | --- Comment #73 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 158304 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=158304&action=edit Bug 23415: Use OPACFineNoRenewals instead of noissuecharge Since noissuecharge is mainly fine limit for checkouts it's more logical to use value in OPACFineNoRenewals. Sponsored-by: Koha-Suomi Oy Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #154598|0 |1 is obsolete| | --- Comment #74 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 158305 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=158305&action=edit Bug 23415: Display confirm dialog only once On detail page when patron has multiple checkouts and they are renewed from checkouts list, confirmation dialog box is displayed as many times as patron has checkouts. This patch reworks some code so this dialog box is displayed only once. To test: 1. Find patron with multiple checkouts (at least two) 2. Renew all checkouts from checkout list 3. Confirmation pop-up is displayed for every checkout 4. Apply this patch 5. Renew again => Confirmation dialog box is displayed only once Sponsored-by: Koha-Suomi Oy Signed-off-by: Stina Hallin <stina.hallin@ub.lu.se> Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #154599|0 |1 is obsolete| | --- Comment #75 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 158306 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=158306&action=edit Bug 23415: Rename OPACFineNoRenewals OPACFineNoRenewals no longer applies just to OPAC. To avoid confusion rename it as FineNoRenewals and also rename all occurences in code. To test, confirm everything works as described in previous test plans. Also prove t/db_dependent/Circulation.t -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #154600|0 |1 is obsolete| | --- Comment #76 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 158307 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=158307&action=edit Bug 23415: Add fine formatting To test: 1. Find patron with checkouts and fines over allowed limit. 2. Renew checkouts either from renew page or checkout list. => Confirm that fines are formated correctly e.g. "The patron has a debt of 20.00" not like "The patron has a debt of 20." -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Signed Off --- Comment #77 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Rebased patches. Setting this back to "Signed Off". -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Patch doesn't apply --- Comment #78 from Kyle M Hall <kyle@bywatersolutions.com> --- Applying: Bug 23415: Rename OPACFineNoRenewals error: sha1 information is lacking or useless (koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref). error: could not build fake ancestor Patch failed at 0001 Bug 23415: Rename OPACFineNoRenewals -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #158302|0 |1 is obsolete| | --- Comment #79 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 161964 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=161964&action=edit Bug 23415: Notify patron fines when renewing It is possible to renew items for patron who has fines over accepted limit on renew page or from checkout list. This patch adds confirmation alerts to these renew actions when patron has fines over "noissuescharge" syspref. Test plan: 1. Have patron with checkouts and fines over allowed limit 2. Renew checkouts either from renew page or checkout list => renew is successful 3. Apply patch 4. Repeat steps 1 and 2 => On renew page an alert is displayed and user has to confirm renew => When renew is done from checkout list confirmation pop-up is displayed Signed-off-by: Anneli Österman <anneli.osterman@koha-suomi.fi> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #158303|0 |1 is obsolete| | --- Comment #80 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 161965 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=161965&action=edit Bug 23415: Add missing filters Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #158304|0 |1 is obsolete| | --- Comment #81 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 161966 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=161966&action=edit Bug 23415: Use OPACFineNoRenewals instead of noissuecharge Since noissuecharge is mainly fine limit for checkouts it's more logical to use value in OPACFineNoRenewals. Sponsored-by: Koha-Suomi Oy Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #158305|0 |1 is obsolete| | --- Comment #82 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 161967 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=161967&action=edit Bug 23415: Display confirm dialog only once On detail page when patron has multiple checkouts and they are renewed from checkouts list, confirmation dialog box is displayed as many times as patron has checkouts. This patch reworks some code so this dialog box is displayed only once. To test: 1. Find patron with multiple checkouts (at least two) 2. Renew all checkouts from checkout list 3. Confirmation pop-up is displayed for every checkout 4. Apply this patch 5. Renew again => Confirmation dialog box is displayed only once Sponsored-by: Koha-Suomi Oy Signed-off-by: Stina Hallin <stina.hallin@ub.lu.se> Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #158306|0 |1 is obsolete| | --- Comment #83 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 161968 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=161968&action=edit Bug 23415: Rename OPACFineNoRenewals OPACFineNoRenewals no longer applies just to OPAC. To avoid confusion rename it as FineNoRenewals and also rename all occurences in code. To test, confirm everything works as described in previous test plans. Also prove t/db_dependent/Circulation.t -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #158307|0 |1 is obsolete| | --- Comment #84 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 161969 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=161969&action=edit Bug 23415: Add fine formatting To test: 1. Find patron with checkouts and fines over allowed limit. 2. Renew checkouts either from renew page or checkout list. => Confirm that fines are formated correctly e.g. "The patron has a debt of 20.00" not like "The patron has a debt of 20." -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Needs Signoff --- Comment #85 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Rebased patches. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #161964|0 |1 is obsolete| | --- Comment #86 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 162171 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162171&action=edit Bug 23415: Notify patron fines when renewing It is possible to renew items for patron who has fines over accepted limit on renew page or from checkout list. This patch adds confirmation alerts to these renew actions when patron has fines over "noissuescharge" syspref. Test plan: 1. Have patron with checkouts and fines over allowed limit 2. Renew checkouts either from renew page or checkout list => renew is successful 3. Apply patch 4. Repeat steps 1 and 2 => On renew page an alert is displayed and user has to confirm renew => When renew is done from checkout list confirmation pop-up is displayed Signed-off-by: Anneli Österman <anneli.osterman@koha-suomi.fi> Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #161965|0 |1 is obsolete| | --- Comment #87 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 162172 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162172&action=edit Bug 23415: Add missing filters Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #161966|0 |1 is obsolete| | --- Comment #88 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 162173 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162173&action=edit Bug 23415: Use OPACFineNoRenewals instead of noissuecharge Since noissuecharge is mainly fine limit for checkouts it's more logical to use value in OPACFineNoRenewals. Sponsored-by: Koha-Suomi Oy Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #161967|0 |1 is obsolete| | --- Comment #89 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 162174 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162174&action=edit Bug 23415: Display confirm dialog only once On detail page when patron has multiple checkouts and they are renewed from checkouts list, confirmation dialog box is displayed as many times as patron has checkouts. This patch reworks some code so this dialog box is displayed only once. To test: 1. Find patron with multiple checkouts (at least two) 2. Renew all checkouts from checkout list 3. Confirmation pop-up is displayed for every checkout 4. Apply this patch 5. Renew again => Confirmation dialog box is displayed only once Sponsored-by: Koha-Suomi Oy Signed-off-by: Stina Hallin <stina.hallin@ub.lu.se> Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #161968|0 |1 is obsolete| | --- Comment #90 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 162175 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162175&action=edit Bug 23415: Rename OPACFineNoRenewals OPACFineNoRenewals no longer applies just to OPAC. To avoid confusion rename it as FineNoRenewals and also rename all occurences in code. To test, confirm everything works as described in previous test plans. Also prove t/db_dependent/Circulation.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #161969|0 |1 is obsolete| | --- Comment #91 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 162176 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162176&action=edit Bug 23415: Add fine formatting To test: 1. Find patron with checkouts and fines over allowed limit. 2. Renew checkouts either from renew page or checkout list. => Confirm that fines are formated correctly e.g. "The patron has a debt of 20.00" not like "The patron has a debt of 20." Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #92 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 162177 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162177&action=edit Bug 23415: (QA follow-up) Remove OPACFineNoRenewals from syspres.sql Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #93 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 162178 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162178&action=edit Bug 23415: Tidy template parameters block Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #94 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 162179 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162179&action=edit Bug 23415: (QA follow-up) Spelling and price formatting Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #95 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 162180 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162180&action=edit Bug 23415: (QA follow-up) Fix rebase code re-introduction Looks like some code was re-introduced during rebases, this patch switches it back to calling the newly introduced 'renew' function rather than doing the post inline. I also compared the two posts and updated the function to match the updated post from upstream. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #96 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- This is really close.. but.. May I ask why you chose to handle this at the controller level rather than adding/moving the check into CanBookBeRenewed? I see you do handle it in the _CanBookBeAutoRenewed version, but I think I am confused that it's not there in parent function. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=31427 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nick@bywatersolutions.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #97 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- (In reply to Martin Renvoize from comment #96)
This is really close.. but.. May I ask why you chose to handle this at the controller level rather than adding/moving the check into CanBookBeRenewed?
I see you do handle it in the _CanBookBeAutoRenewed version, but I think I am confused that it's not there in parent function.
Hmm, do you mean why there is a line my
$fine_no_renewals = C4::Context->preference("FineNoRenewals"); (and everything after that line) in _CanBookBeAutoRenewed? Those have been added in different bug, I just renamed syspref from "OPACFineNoRenewals" -> "FineNoRenewals".
-- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Patch doesn't apply -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #98 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- I'm afraid this needs a rebase -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #99 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- It seems that last patch is partially dated. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC|martin.renvoize@ptfs-europe | |.com | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Lucy Vaux-Harvey <lucy.vaux-harvey@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lucy.vaux-harvey@ptfs-europ | |e.com --- Comment #100 from Lucy Vaux-Harvey <lucy.vaux-harvey@ptfs-europe.com> --- It would be great to keep this moving along as so much work has been done already. I currently have a library asking for this functionality. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #101 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Code, especially in checkouts.js, has changed so much since last rebase that it's kinda tricky to sort out where everything goes. So this probably needs a lot of rework. I'll probably need to provide whole new patches for this since I don't see a point to just rebase these patches and then creating a new patch to address changes made to the code. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #102 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- I am sorry to hear this Emmi, I hope we didn't make it harder. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #162171|0 |1 is obsolete| | Attachment #162172|0 |1 is obsolete| | Attachment #162173|0 |1 is obsolete| | Attachment #162174|0 |1 is obsolete| | Attachment #162176|0 |1 is obsolete| | Attachment #162179|0 |1 is obsolete| | Attachment #162180|0 |1 is obsolete| | --- Comment #103 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 171620 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=171620&action=edit Bug 23415: Notify patron fines when renewing It is possible to renew items for patron who has fines over accepted limit on renew page or from checkout list. This patch adds confirmation alerts to these renew actions when patron has fines over "noissuescharge" syspref. Test plan: 1. Have patron with checkouts and fines over allowed limit 2. Renew checkouts either from renew page or checkout list => renew is successful 3. Apply patch 4. Repeat steps 1 and 2 => On renew page an alert is displayed and user has to confirm renew => When renew is done from checkout list confirmation pop-up is displayed Sponsored-by: Koha-Suomi Oy -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #162175|0 |1 is obsolete| | --- Comment #104 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 171621 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=171621&action=edit Bug 23415: Rename OPACFineNoRenewals OPACFineNoRenewals no longer applies just to OPAC. To avoid confusion rename it as FineNoRenewals and also rename all occurences in code. To test, confirm everything works as described in previous test plans. Also prove t/db_dependent/Circulation.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #162177|0 |1 is obsolete| | --- Comment #105 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 171622 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=171622&action=edit Bug 23415: (QA follow-up) Remove OPACFineNoRenewals from syspres.sql Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #162178|0 |1 is obsolete| | --- Comment #106 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 171623 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=171623&action=edit Bug 23415: Tidy template parameters block Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Needs Signoff --- Comment #107 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- (In reply to Katrin Fischer from comment #102)
I am sorry to hear this Emmi, I hope we didn't make it harder.
It actually wasn't as bad as I feared it would be :D I fixed and squashed some patches together, so that this is easier to maintain. However I kept the changes made to OPACFineNoRenewals syspref separate from other changes (again, changes are easier to maintain this way imo). This could need a new test round and sign offs. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #108 from Lucy Vaux-Harvey <lucy.vaux-harvey@ptfs-europe.com> --- Thank you for looking at this again Emmi and all. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Shi Yao Wang <shi-yao.wang@inLibro.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #171620|0 |1 is obsolete| | --- Comment #109 from Shi Yao Wang <shi-yao.wang@inLibro.com> --- Created attachment 171983 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=171983&action=edit Bug 23415: Notify patron fines when renewing It is possible to renew items for patron who has fines over accepted limit on renew page or from checkout list. This patch adds confirmation alerts to these renew actions when patron has fines over "noissuescharge" syspref. Test plan: 1. Have patron with checkouts and fines over allowed limit 2. Renew checkouts either from renew page or checkout list => renew is successful 3. Apply patch 4. Repeat steps 1 and 2 => On renew page an alert is displayed and user has to confirm renew => When renew is done from checkout list confirmation pop-up is displayed Sponsored-by: Koha-Suomi Oy Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Shi Yao Wang <shi-yao.wang@inLibro.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #171621|0 |1 is obsolete| | --- Comment #110 from Shi Yao Wang <shi-yao.wang@inLibro.com> --- Created attachment 171984 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=171984&action=edit Bug 23415: Rename OPACFineNoRenewals OPACFineNoRenewals no longer applies just to OPAC. To avoid confusion rename it as FineNoRenewals and also rename all occurences in code. To test, confirm everything works as described in previous test plans. Also prove t/db_dependent/Circulation.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Shi Yao Wang <shi-yao.wang@inLibro.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #171622|0 |1 is obsolete| | --- Comment #111 from Shi Yao Wang <shi-yao.wang@inLibro.com> --- Created attachment 171985 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=171985&action=edit Bug 23415: (QA follow-up) Remove OPACFineNoRenewals from syspres.sql Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Shi Yao Wang <shi-yao.wang@inLibro.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #171623|0 |1 is obsolete| | --- Comment #112 from Shi Yao Wang <shi-yao.wang@inLibro.com> --- Created attachment 171986 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=171986&action=edit Bug 23415: Tidy template parameters block Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Shi Yao Wang <shi-yao.wang@inLibro.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off CC| |shi-yao.wang@inLibro.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #171983|0 |1 is obsolete| | --- Comment #113 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172906 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172906&action=edit Bug 23415: Notify patron fines when renewing It is possible to renew items for patron who has fines over accepted limit on renew page or from checkout list. This patch adds confirmation alerts to these renew actions when patron has fines over "noissuescharge" syspref. Test plan: 1. Have patron with checkouts and fines over allowed limit 2. Renew checkouts either from renew page or checkout list => renew is successful 3. Apply patch 4. Repeat steps 1 and 2 => On renew page an alert is displayed and user has to confirm renew => When renew is done from checkout list confirmation pop-up is displayed Sponsored-by: Koha-Suomi Oy Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #171984|0 |1 is obsolete| | --- Comment #114 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172907 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172907&action=edit Bug 23415: Rename OPACFineNoRenewals OPACFineNoRenewals no longer applies just to OPAC. To avoid confusion rename it as FineNoRenewals and also rename all occurences in code. To test, confirm everything works as described in previous test plans. Also prove t/db_dependent/Circulation.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #171985|0 |1 is obsolete| | --- Comment #115 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172908 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172908&action=edit Bug 23415: (QA follow-up) Remove OPACFineNoRenewals from syspres.sql Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #171986|0 |1 is obsolete| | --- Comment #116 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172909 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172909&action=edit Bug 23415: Tidy template parameters block Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #117 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Created attachment 172910 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172910&action=edit Bug 23415: (QA follow-up) Move to Circulation::CanBookBeRenewed This moves the basic calculation for too_much_oweing out of the controller and into the class method. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA --- Comment #118 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Sorry it took so long to come back to this.. all looking good now. Passing QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |additional_work_needed --- Comment #119 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- 1) Translations (follow-up please) + var MSG_CONFIRM_RENEW = _("The patron has a debt of %s\nAre you sure you want to renew checkout(s)?").format(fines); The \n is likely to cause issues in translations (haven't checked with Weblate, but was definitely an issue with Pootle. Please split into separate strings. 2) too_much_oweing (question, not blocker) Wondering if that should be "owing"? If so, we could fix it globally on a separate bug. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Failed QA --- Comment #120 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Sorry, I was about to push this, but it needs some more work: 3) xt/find-missing-op-in-forms.t 1..1 not ok 1 - The <form> in the following files are missing it's corresponding op parameter, or op does not start with 'cud-' (see bug 34478) # Failed test 'The <form> in the following files are missing it's corresponding op parameter, or op does not start with 'cud-' (see bug 34478)' # at xt/find-missing-op-in-forms.t line 43. # got: '1' # expected: '0' # $VAR1 = 'koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt:193'; # Looks like you failed 1 test of 1. 4) xt/find-missing-csrf.t 5) xt/yaml_valid.t -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|additional_work_needed |rel_24_11_candidate -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #121 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- After latest patch, this no longer works as intended. If patron has fines over FineNoRenewals limit, renewing loans is prevented with message "too_much_oweing". Clicking "Renew all" displays pop up, but clicking ok just displays "There are no items to be renewed." pop up. So this got me thinking, which way is more preferable? Either we allow renewing items and overwrite FineNoRenewals limit like these patches did previously. Or we don't allow overwriting that limit and prevent it with error "too_much_oweing". -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #122 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- I have to admit I got a bit confused about the before and after, but could something like AllowFineOverride be helpful here? Or a confirmation with an option to override. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #123 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- (In reply to Katrin Fischer from comment #122)
I have to admit I got a bit confused about the before and after, but could something like AllowFineOverride be helpful here? Or a confirmation with an option to override.
Hmm, AllowFineOverride would probably be the way to go here. But do we then need to change its description to something like this: "..staff to manually override and check out items or renew holds to patrons who have more in fines than set in the noissuescharge or FineNoRenewals system preference." Of course there's also possibility that some libraries want to override check out limit, but not holds limit. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #124 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- We could do another pref... but before considering that it would maybe be good to get some libraries opinions on the use case and if that is really required. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #125 from Lucy Vaux-Harvey <lucy.vaux-harvey@ptfs-europe.com> --- Hi, the library that I am currently working with would need the ability for staff to override from the alert message. I think it might need to be a separate system preference in order to give libraries flexibility over which transactions could be overridden. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|rel_24_11_candidate |rel_25_05_candidate -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #126 from Martin Renvoize (ashimema) <martin.renvoize@ptfs-europe.com> --- Do you think you'll be able to get back to this one Emmi? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #127 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- (In reply to Martin Renvoize (ashimema) from comment #126)
Do you think you'll be able to get back to this one Emmi?
I'm not currently able to work with this. Feel free to take this one if you (or someone else) have time :) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|rel_25_05_candidate | --- Comment #128 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- (In reply to Emmi Takkinen from comment #127)
(In reply to Martin Renvoize (ashimema) from comment #126)
Do you think you'll be able to get back to this one Emmi?
I'm not currently able to work with this. Feel free to take this one if you (or someone else) have time :)
Sadly, this wasn't adopted and hasn't moved forward in the last month. Removing rel_25_05_candidate as we will use this now to track bugs still eligible for this version past soft feature freeze (depending on size etc.) Emmi, I don't want to remove you as Assignee if you want to come back in future, please decide yourself how you want to handle it! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #129 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- I would be lovely to get this moving again.. but I'm not sure I can commit any more time here either :( -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172906|0 |1 is obsolete| | --- Comment #130 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 185270 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=185270&action=edit Bug 23415: Notify patron fines when renewing It is possible to renew items for patron who has fines over accepted limit on renew page or from checkout list. This patch adds confirmation alerts to these renew actions when patron has fines over "noissuescharge" syspref. Test plan: 1. Have patron with checkouts and fines over allowed limit 2. Renew checkouts either from renew page or checkout list => renew is successful 3. Apply patch 4. Repeat steps 1 and 2 => On renew page an alert is displayed and user has to confirm renew => When renew is done from checkout list confirmation pop-up is displayed Sponsored-by: Koha-Suomi Oy Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172907|0 |1 is obsolete| | --- Comment #131 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 185271 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=185271&action=edit Bug 23415: Rename OPACFineNoRenewals OPACFineNoRenewals no longer applies just to OPAC. To avoid confusion rename it as FineNoRenewals and also rename all occurences in code. To test, confirm everything works as described in previous test plans. Also prove t/db_dependent/Circulation.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172908|0 |1 is obsolete| | --- Comment #132 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 185272 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=185272&action=edit Bug 23415: (QA follow-up) Remove OPACFineNoRenewals from syspres.sql Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172909|0 |1 is obsolete| | --- Comment #133 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 185273 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=185273&action=edit Bug 23415: Tidy template parameters block Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #172910|0 |1 is obsolete| | --- Comment #134 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 185274 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=185274&action=edit Bug 23415: (QA follow-up) Move to Circulation::CanBookBeRenewed This moves the basic calculation for too_much_oweing out of the controller and into the class method. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #135 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 185275 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=185275&action=edit Bug 23415: Add new syspref AllowFineOverrideRenewing This patch adds new syspref AllowFineOverrideRenewing. It allows staff to renew items for patrons whose fines are over limit set in syspref FineNoRenewals. Otherwise renewing is prevented. If renewing items is allowed staff is still required to confirm if they really want to renew items for the patron. To test: 1. Apply this patch, update database and restart all services. 2. Find patron with fines over limit set in FineNoRenewals and renewable items. => Note that renewing is prevented with message "Cannot renew, he patron has a debt of..." 3. Set syspref AllowFineOverrideRenewing as "Allow". => Note that items can now be renewed and renewing them displays confirmation pop-up. Sponsored-by: Koha-Suomi Oy -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff --- Comment #136 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Rebased patches and added a new one with a proposal of a new syspref. I didn't yet fix issues Katrin pointed in her comments, will do that after returning from vacation. I'll set this as Needs Signoff to get some feed back, but note that this isn't ready to be pushed to main yet. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Katie Bliss <kebliss@dmpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kebliss@dmpl.org -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #137 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- (In reply to Katrin Fischer from comment #119)
2) too_much_oweing (question, not blocker)
Wondering if that should be "owing"? If so, we could fix it globally on a separate bug.
It should be owing imo. And yes, I'd rather left them as they are for now and fix them in a separate bug. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #138 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 186014 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=186014&action=edit Bug 23415: Fix QA issues -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #139 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Fixed QA issues, qa-tool and tests under xt should now be happy so this is ready for testing. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #140 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Sorry Emmi, I hit sha1 issues trying to apply this one. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #141 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Worked around it -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #185270|0 |1 is obsolete| | --- Comment #142 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188331 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188331&action=edit Bug 23415: Notify patron fines when renewing It is possible to renew items for patron who has fines over accepted limit on renew page or from checkout list. This patch adds confirmation alerts to these renew actions when patron has fines over "noissuescharge" syspref. Test plan: 1. Have patron with checkouts and fines over allowed limit 2. Renew checkouts either from renew page or checkout list => renew is successful 3. Apply patch 4. Repeat steps 1 and 2 => On renew page an alert is displayed and user has to confirm renew => When renew is done from checkout list confirmation pop-up is displayed Sponsored-by: Koha-Suomi Oy Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #185271|0 |1 is obsolete| | --- Comment #143 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188332 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188332&action=edit Bug 23415: Rename OPACFineNoRenewals OPACFineNoRenewals no longer applies just to OPAC. To avoid confusion rename it as FineNoRenewals and also rename all occurences in code. To test, confirm everything works as described in previous test plans. Also prove t/db_dependent/Circulation.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #185272|0 |1 is obsolete| | --- Comment #144 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188333 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188333&action=edit Bug 23415: (QA follow-up) Remove OPACFineNoRenewals from syspres.sql Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #185273|0 |1 is obsolete| | --- Comment #145 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188334 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188334&action=edit Bug 23415: Tidy template parameters block Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #185274|0 |1 is obsolete| | --- Comment #146 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188335 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188335&action=edit Bug 23415: (QA follow-up) Move to Circulation::CanBookBeRenewed This moves the basic calculation for too_much_oweing out of the controller and into the class method. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #185275|0 |1 is obsolete| | --- Comment #147 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188336 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188336&action=edit Bug 23415: Add new syspref AllowFineOverrideRenewing This patch adds new syspref AllowFineOverrideRenewing. It allows staff to renew items for patrons whose fines are over limit set in syspref FineNoRenewals. Otherwise renewing is prevented. If renewing items is allowed staff is still required to confirm if they really want to renew items for the patron. To test: 1. Apply this patch, update database and restart all services. 2. Find patron with fines over limit set in FineNoRenewals and renewable items. => Note that renewing is prevented with message "Cannot renew, he patron has a debt of..." 3. Set syspref AllowFineOverrideRenewing as "Allow". => Note that items can now be renewed and renewing them displays confirmation pop-up. Sponsored-by: Koha-Suomi Oy -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #186014|0 |1 is obsolete| | --- Comment #148 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188337 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188337&action=edit Bug 23415: Fix QA issues -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #149 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188338 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188338&action=edit Bug 23415: (QA follow-up) Fix critical logic and security issues This commit addresses several critical issues found in QA review: 1. Fixed critical logic bug in C4::Circulation::CanBookBeRenewed - Removed incorrect check of AllowFineOverrideRenewing preference - The function now always returns 'too_much_oweing' error when patron balance exceeds FineNoRenewals limit - AllowFineOverrideRenewing should only control UI override capability, not the core renewal check 2. Added permission check in circ/renew.pl - Override is now only allowed when both override_debt parameter is set AND AllowFineOverrideRenewing preference is enabled - Prevents security issue where staff could bypass the preference by crafting POST requests 3. Fixed template to conditionally display override button - Override button in renew.tt now only shows when AllowFineOverrideRenewing is enabled - Prevents confusion when override is not permitted 4. Added comprehensive test coverage - Tests verify CanBookBeRenewed behavior with AllowFineOverrideRenewing both enabled and disabled - Confirms error is always returned regardless of preference setting - Increased test count from 116 to 120 5. Fixed minor issues - Fixed typo: "he patron" -> "the patron" in checkouts.js - Fixed typo: OPACFineNoRenewalsIncludeCredit -> OPACFineNoRenewalsIncludeCredits in test All tests pass successfully. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #150 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188339 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188339&action=edit Bug 23415: (QA follow-up) Fix spelling: oweing -> owing Standardizes error code spelling across the codebase: - Changes 'too_much_oweing' to 'too_much_owing' - Changes 'auto_too_much_oweing' to 'auto_too_much_owing' The word "owing" is the correct spelling in English. Files updated: - C4/Circulation.pm - C4/SIP/Sip/MsgType.pm - circ/renew.pl - koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt - koha-tmpl/intranet-tmpl/prog/js/checkouts.js - koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt - koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt - misc/cronjobs/automatic_renewals.pl - opac/opac-reserve.pl - opac/opac-user.pl - t/db_dependent/Circulation.t All tests pass successfully. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #151 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188340 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188340&action=edit Bug 23415: Add Cypress test coverage for FineNoRenewals This commit adds comprehensive end-to-end tests for the fine-based renewal blocking functionality using Cypress. Test coverage includes: 1. Blocking renewal when patron fines exceed FineNoRenewals limit 2. Displaying override button when AllowFineOverrideRenewing is enabled 3. Hiding override button when AllowFineOverrideRenewing is disabled 4. Successful override when permission is enabled 5. Allowing renewal when fines are below the limit The test creates test data including: - A patron with checkouts - Account fines that exceed the FineNoRenewals threshold - Tests both blocking and override scenarios Tests verify the UI behavior matches the business logic: - Error messages are displayed correctly - Override buttons appear based on preference setting - Override functionality works as expected - Security is maintained (no override without permission) To run these tests: npx cypress run --spec "t/cypress/integration/Circulation/FineNoRenewals_spec.ts" -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #152 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188341 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188341&action=edit Bug 23415: Add API tests for fine override on renewal This commit adds comprehensive REST API tests to verify the x-koha-override: debt_limit functionality for renewals. Tests cover: - Renewal blocked due to excessive fines - Override fails when AllowFineOverrideRenewing is disabled - Override succeeds when AllowFineOverrideRenewing is enabled - Both /renewal and /renewals endpoints Test plan: 1. Run: prove t/db_dependent/api/v1/checkouts.t 2. All 110 tests should pass -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #153 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188342 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188342&action=edit Bug 23415: Add REST API support for fine override on renewal This commit adds support for the AllowFineOverrideRenewing functionality to the REST API renewal endpoints using the standard x-koha-override pattern. Changes: 1. Added x-koha-override header parameter to both renewal endpoints: - POST /checkouts/{checkout_id}/renewal - POST /checkouts/{checkout_id}/renewals 2. Updated Koha::REST::V1::Checkouts::renew() to: - Check for 'debt_limit' in the overrides stash - Check AllowFineOverrideRenewing preference when override is requested - Allow renewal override only when both: * x-koha-override header contains 'debt_limit' AND * AllowFineOverrideRenewing preference is enabled - Follows the established x-koha-override pattern used by other endpoints 3. Updated OpenAPI specification (swagger) to document the new header using the standard pattern with enum values Usage: curl -X POST /api/v1/checkouts/123/renewal \ -H "x-koha-override: debt_limit" The override only works for too_much_owing errors and requires the AllowFineOverrideRenewing system preference to be enabled. This implementation follows the same pattern as holds and other endpoints that support overrides, maintaining consistency across the REST API. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #154 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Test Plan ## Add a syspref to allow a fine override for renewals ### Test Overview This test plan focuses on verifying that staff are properly alerted when patrons with excessive fines attempt to renew items, and that the optional override functionality works correctly. --- ## Prerequisites 1. Apply all patches from Bug 23415 2. Run database updates: `perl installer/data/mysql/updatedatabase.pl` 3. Rebuild assets: `yarn build` (in KTD: `ktd --shell` then `yarn build`) 4. Restart services: `restart_all` (in KTD) 5. Have staff account with circulation permissions --- ## Test Scenario 1: Verify Fine Blocking Works ### Setup 1. Go to **Administration** > **System Preferences** 2. Search for **FineNoRenewals** 3. Set value to: **5.00** 4. Search for **AllowFineOverrideRenewing** 5. Set to: **Don't allow** (0) 6. Click **Save all Circulation Preferences** ### Create Test Patron with Fines 1. Go to **Patrons** > **New patron** (or use existing patron) 2. Create/select a patron 3. Note the patron's card number 4. Go to patron's **Fines** tab 5. Click **Create manual invoice** - Type: Choose "Overdue" - Amount: **10.00** (exceeds the 5.00 threshold) - Description: "Test fine for Bug 23415" 6. Click **Save** 7. Verify patron now has **$10.00 in fines** ### Check Out an Item to the Patron 1. Go to **Circulation** > **Check out** 2. Scan/enter patron card number 3. Check out any available item to the patron 4. Note the item barcode ### Test Renewal Blocking 1. Go to **Circulation** > **Renew** 2. Scan/enter the item barcode from above 3. Click **Submit** or press Enter **Expected Results:** - ❌ Renewal should be **BLOCKED** - 🔴 You should see a **red alert/error message** stating: - "The patron has a debt of $10.00" - ❌ You should **NOT** see any button to override or proceed with renewal - The item should **NOT** be renewed **PASS/FAIL:** _______ --- ## Test Scenario 2: Verify Override Button Appears When Enabled ### Setup 1. Go to **Administration** > **System Preferences** 2. Search for **AllowFineOverrideRenewing** 3. Set to: **Allow** (1) 4. Click **Save all Circulation Preferences** ### Test Renewal with Override Available 1. Go to **Circulation** > **Renew** 2. Scan/enter the same item barcode from Scenario 1 3. Click **Submit** or press Enter **Expected Results:** - ❌ Renewal should initially be **BLOCKED** - 🔴 You should see a **red alert/error message** stating: - "The patron has a debt of $10.00" - ✅ You **SHOULD** now see a **"Renew checkout(s)" button** - The button should be clearly visible within or near the alert message - It should be styled as an action button (likely green or prominent) **PASS/FAIL:** _______ --- ## Test Scenario 3: Verify Override Functionality Works ### Test Using Override Button 1. Still on the renewal page with the alert showing 2. Click the **"Renew checkout(s)"** button **Expected Results:** - ✅ The renewal should **SUCCEED** - ✅ You should see a **green success message** stating: - "Item renewed" - 📅 The due date should be updated/extended - The patron should **still have $10.00 in fines** (override doesn't remove fines) **PASS/FAIL:** _______ ### Verify Renewal in Patron Record 1. Go to the patron's record 2. Click on **Checkouts** tab **Expected Results:** - ✅ The item should show an **updated/extended due date** - ✅ The **Renewals count** should have increased by 1 **PASS/FAIL:** _______ --- ## Test Scenario 4: Verify No Override When Preference Disabled ### Setup 1. Go to **Administration** > **System Preferences** 2. Search for **AllowFineOverrideRenewing** 3. Set to: **Don't allow** (0) 4. Click **Save all Circulation Preferences** ### Attempt Another Renewal 1. Go to **Circulation** > **Renew** 2. Scan/enter the same item barcode (should still be checked out) 3. Click **Submit** or press Enter **Expected Results:** - ❌ Renewal should be **BLOCKED** - 🔴 You should see the error message about patron debt - ❌ You should **NOT** see the "Renew checkout(s)" button - The override button should have **disappeared** since the preference is disabled **PASS/FAIL:** _______ --- ## Test Scenario 5: Verify Renewal Allowed When Fines Below Threshold ### Setup - Pay Down Fines 1. Go to the patron's record 2. Click on **Fines** tab 3. Find the $10.00 fine 4. Click **Pay** or **Pay amount** 5. Pay **$7.00** (leaving $3.00 outstanding) 6. Verify patron now has **$3.00 in fines** (below the 5.00 threshold) ### Test Renewal with Low Fines 1. Go to **Circulation** > **Renew** 2. Scan/enter the item barcode 3. Click **Submit** or press Enter **Expected Results:** - ✅ Renewal should **SUCCEED** immediately - ✅ You should see a **green success message**: "Item renewed" - ❌ You should **NOT** see any error about fines - ❌ You should **NOT** need to override anything **PASS/FAIL:** _______ --- ## Test Scenario 6: Verify Checkout Page Behavior ### Test from Patron Checkout Page 1. Go to **Circulation** > **Check out** 2. Search for and load the patron (who still has $3.00 in fines) 3. Look at the patron details section and checkout summary **Expected Results:** - The patron's outstanding fines should be **displayed** - There should be **no blocking message** (since $3.00 < $5.00 threshold) **PASS/FAIL:** _______ ### Increase Fines Above Threshold Again 1. While on the checkout page, open a new tab 2. Go to the patron's record > **Fines** tab 3. Click **Create manual invoice** - Type: "Overdue" - Amount: **5.00** - Description: "Additional test fine" 4. Click **Save** 5. Return to the checkout page tab 6. Refresh the page or re-scan patron card number **Expected Results:** - The patron now has **$8.00 in fines** (above threshold) - When attempting to check out a new item, you should see appropriate warnings - Existing checkouts should show renewal is blocked for this patron **PASS/FAIL:** _______ --- ## Test Scenario 7: Test Both Renewal Endpoints ### Test from Patron Checkouts Tab 1. Go to patron's record > **Checkouts** tab 2. Find the checked-out item 3. Click the **Renew** button in the checkouts table **Expected Results (if AllowFineOverrideRenewing = Don't allow):** - ❌ Should see error message about patron debt - ❌ Renewal should fail **PASS/FAIL:** _______ ### Enable Override and Test Again 1. Set **AllowFineOverrideRenewing** to **Allow** 2. Return to patron's **Checkouts** tab 3. Click **Renew** button again **Expected Results:** - Should see the override option - Should be able to complete renewal with override **PASS/FAIL:** _______ --- ## Edge Case Testing ### Test Scenario 8: Verify Auto-Renewal Blocking (OPAC) **Note:** This requires the patron to have the item checked out and auto-renewal enabled 1. Set **AllowFineOverrideRenewing** to **Allow** 2. Ensure patron has fines > $5.00 3. Ensure **OPACFineNoRenewalsBlockAutoRenew** is set to **Allow** 4. Log into **OPAC** as the patron 5. Go to patron's account > **Checked out items** 6. Find the item and look for renewal options **Expected Results:** - If auto-renewals are enabled, they should be blocked - Manual renewal from OPAC should also be blocked - The **override functionality is NOT available in OPAC** (staff interface only) **PASS/FAIL:** _______ --- ## Test Scenario 9: Verify Error Codes ### Test API Error Codes (Optional - Advanced Testing) If you have API access configured: 1. Set **FineNoRenewals** to **5.00** 2. Set **AllowFineOverrideRenewing** to **Don't allow** 3. Attempt renewal via REST API without override header - Should return error code: `too_much_owing` or `auto_too_much_owing` 4. Set **AllowFineOverrideRenewing** to **Allow** 5. Attempt renewal with `x-koha-override: debt_limit` header - Should succeed (201 status) **PASS/FAIL:** _______ -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |david@davidnind.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrew@bywatersolutions.com | |, tomascohen@gmail.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lucas@bywatersolutions.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415
David Nind <david@davidnind.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|Needs Signoff |Failed QA
--- Comment #155 from David Nind <david@davidnind.com> ---
I attempted to test, but have Failed QA because:
1. Running the cypress tests failed: npx cypress run --spec
"t/cypress/integration/Circulation/FineNoRenewals_spec.ts"
2. If AllowFineOverrideRenewing is set to "Don't allow", on the checkouts list
on the patron's page the "Renew all" action button under the table is still
active, although it does renew any items when you click it (there are pop-up
windows "The patron has a debt of 8.00Are you sure you want to renew
checkout(s)?", click OK, "There are no items to be renewed").
Testing notes (using KTD):
1. I attempted to follow the individual; patch test plans, but gave up.
2. I followed the obsoleted test plan in comment #154, and everything seemed to
work as described (I didn't test the API things).
3. Tests:
. prove t/db_dependent/Circulation.t
. npx cypress run --spec
"t/cypress/integration/Circulation/FineNoRenewals_spec.ts"
. prove t/db_dependent/api/v1/checkouts.t
4. Notes on system preference changes (for updating the documentation):
- OPACFineNoRenewals: no longer exists
- FineNoRenewals: replaces OPACFineNoRenewals, now located under Circulation
> Checkout policy, wording is now:
Only allow patrons or staff to renew items if patron has less than [5]
USD in fines (leave blank to disable).
- OPACFineNoRenewalsBlockAutoRenew: text updated with FineNoRenewals system
preference link
- OPACFineNoRenewalsIncludeCredits: text updated with FineNoRenewals system
preference link
- AllowFineOverrideRenewing: new preference, text is:
[Don't allow|Allow] staff to manually override and renew items for
patrons who have more in fines than set in the FineNoRenewals system
preference.
--
You are receiving this mail because:
You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #156 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Thanks for testing David, I was meaning to revisit the test plan as I wasn't happy with how verbose it ended up relying on AI to generate it... but I'm glad it helped. I've found and fixed the issue with the Cypress test (caching in the tests themselves), but whilst doing so I also found a few more edge cases in the implementation to test (namely, renewing from the checkouts list tables) I'll be submitting a new patchset soon, rebased and with a few follow-ups. Thanks again -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #157 from David Nind <david@davidnind.com> --- (In reply to Martin Renvoize (ashimema) from comment #156)
Thanks for testing David, I was meaning to revisit the test plan as I wasn't happy with how verbose it ended up relying on AI to generate it... but I'm glad it helped.
I've found and fixed the issue with the Cypress test (caching in the tests themselves), but whilst doing so I also found a few more edge cases in the implementation to test (namely, renewing from the checkouts list tables)
I'll be submitting a new patchset soon, rebased and with a few follow-ups.
Thanks again
+10 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #188331|0 |1 is obsolete| | --- Comment #158 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188708 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188708&action=edit Bug 23415: Notify patron fines when renewing It is possible to renew items for patron who has fines over accepted limit on renew page or from checkout list. This patch adds confirmation alerts to these renew actions when patron has fines over "noissuescharge" syspref. Test plan: 1. Have patron with checkouts and fines over allowed limit 2. Renew checkouts either from renew page or checkout list => renew is successful 3. Apply patch 4. Repeat steps 1 and 2 => On renew page an alert is displayed and user has to confirm renew => When renew is done from checkout list confirmation pop-up is displayed Sponsored-by: Koha-Suomi Oy Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #188332|0 |1 is obsolete| | --- Comment #159 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188709 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188709&action=edit Bug 23415: Rename OPACFineNoRenewals OPACFineNoRenewals no longer applies just to OPAC. To avoid confusion rename it as FineNoRenewals and also rename all occurences in code. To test, confirm everything works as described in previous test plans. Also prove t/db_dependent/Circulation.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #188333|0 |1 is obsolete| | --- Comment #160 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188710 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188710&action=edit Bug 23415: (QA follow-up) Remove OPACFineNoRenewals from syspres.sql Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #188334|0 |1 is obsolete| | --- Comment #161 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188711 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188711&action=edit Bug 23415: Tidy template parameters block Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #188335|0 |1 is obsolete| | --- Comment #162 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188712 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188712&action=edit Bug 23415: (QA follow-up) Move to Circulation::CanBookBeRenewed This moves the basic calculation for too_much_oweing out of the controller and into the class method. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #188336|0 |1 is obsolete| | --- Comment #163 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188713 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188713&action=edit Bug 23415: Add new syspref AllowFineOverrideRenewing This patch adds new syspref AllowFineOverrideRenewing. It allows staff to renew items for patrons whose fines are over limit set in syspref FineNoRenewals. Otherwise renewing is prevented. If renewing items is allowed staff is still required to confirm if they really want to renew items for the patron. To test: 1. Apply this patch, update database and restart all services. 2. Find patron with fines over limit set in FineNoRenewals and renewable items. => Note that renewing is prevented with message "Cannot renew, he patron has a debt of..." 3. Set syspref AllowFineOverrideRenewing as "Allow". => Note that items can now be renewed and renewing them displays confirmation pop-up. Sponsored-by: Koha-Suomi Oy -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #188337|0 |1 is obsolete| | --- Comment #164 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188714 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188714&action=edit Bug 23415: Fix QA issues -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #188338|0 |1 is obsolete| | --- Comment #165 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188715 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188715&action=edit Bug 23415: (QA follow-up) Fix critical logic and security issues This commit addresses several critical issues found in QA review: 1. Fixed critical logic bug in C4::Circulation::CanBookBeRenewed - Removed incorrect check of AllowFineOverrideRenewing preference - The function now always returns 'too_much_oweing' error when patron balance exceeds FineNoRenewals limit - AllowFineOverrideRenewing should only control UI override capability, not the core renewal check 2. Added permission check in circ/renew.pl - Override is now only allowed when both override_debt parameter is set AND AllowFineOverrideRenewing preference is enabled - Prevents security issue where staff could bypass the preference by crafting POST requests 3. Fixed template to conditionally display override button - Override button in renew.tt now only shows when AllowFineOverrideRenewing is enabled - Prevents confusion when override is not permitted 4. Added comprehensive test coverage - Tests verify CanBookBeRenewed behavior with AllowFineOverrideRenewing both enabled and disabled - Confirms error is always returned regardless of preference setting - Increased test count from 116 to 120 5. Fixed minor issues - Fixed typo: "he patron" -> "the patron" in checkouts.js - Fixed typo: OPACFineNoRenewalsIncludeCredit -> OPACFineNoRenewalsIncludeCredits in test All tests pass successfully. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #188339|0 |1 is obsolete| | --- Comment #166 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188716 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188716&action=edit Bug 23415: (QA follow-up) Fix spelling: oweing -> owing Standardizes error code spelling across the codebase: - Changes 'too_much_oweing' to 'too_much_owing' - Changes 'auto_too_much_oweing' to 'auto_too_much_owing' The word "owing" is the correct spelling in English. Files updated: - C4/Circulation.pm - C4/SIP/Sip/MsgType.pm - circ/renew.pl - koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt - koha-tmpl/intranet-tmpl/prog/js/checkouts.js - koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt - koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt - misc/cronjobs/automatic_renewals.pl - opac/opac-reserve.pl - opac/opac-user.pl - t/db_dependent/Circulation.t All tests pass successfully. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #188708|0 |1 is obsolete| | --- Comment #167 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188717 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188717&action=edit Bug 23415: Notify patron fines when renewing It is possible to renew items for patron who has fines over accepted limit on renew page or from checkout list. This patch adds confirmation alerts to these renew actions when patron has fines over "noissuescharge" syspref. Test plan: 1. Have patron with checkouts and fines over allowed limit 2. Renew checkouts either from renew page or checkout list => renew is successful 3. Apply patch 4. Repeat steps 1 and 2 => On renew page an alert is displayed and user has to confirm renew => When renew is done from checkout list confirmation pop-up is displayed Sponsored-by: Koha-Suomi Oy Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #188709|0 |1 is obsolete| | --- Comment #168 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188718 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188718&action=edit Bug 23415: Rename OPACFineNoRenewals OPACFineNoRenewals no longer applies just to OPAC. To avoid confusion rename it as FineNoRenewals and also rename all occurences in code. To test, confirm everything works as described in previous test plans. Also prove t/db_dependent/Circulation.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #188710|0 |1 is obsolete| | --- Comment #169 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188719 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188719&action=edit Bug 23415: (QA follow-up) Remove OPACFineNoRenewals from syspres.sql Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #188711|0 |1 is obsolete| | --- Comment #170 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188720 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188720&action=edit Bug 23415: Tidy template parameters block Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #188340|0 |1 is obsolete| | Attachment #188341|0 |1 is obsolete| | Attachment #188342|0 |1 is obsolete| | Attachment #188712|0 |1 is obsolete| | Attachment #188713|0 |1 is obsolete| | Attachment #188714|0 |1 is obsolete| | Attachment #188715|0 |1 is obsolete| | Attachment #188716|0 |1 is obsolete| | Attachment #188717|0 |1 is obsolete| | Attachment #188718|0 |1 is obsolete| | Attachment #188719|0 |1 is obsolete| | Attachment #188720|0 |1 is obsolete| | --- Comment #171 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188738 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188738&action=edit Bug 23415: Notify patron fines when renewing It is possible to renew items for patron who has fines over accepted limit on renew page or from checkout list. This patch adds confirmation alerts to these renew actions when patron has fines over "noissuescharge" syspref. Test plan: 1. Have patron with checkouts and fines over allowed limit 2. Renew checkouts either from renew page or checkout list => renew is successful 3. Apply patch 4. Repeat steps 1 and 2 => On renew page an alert is displayed and user has to confirm renew => When renew is done from checkout list confirmation pop-up is displayed Sponsored-by: Koha-Suomi Oy Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #172 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188739 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188739&action=edit Bug 23415: Rename OPACFineNoRenewals OPACFineNoRenewals no longer applies just to OPAC. To avoid confusion rename it as FineNoRenewals and also rename all occurences in code. To test, confirm everything works as described in previous test plans. Also prove t/db_dependent/Circulation.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #173 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188740 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188740&action=edit Bug 23415: (QA follow-up) Remove OPACFineNoRenewals from syspres.sql Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #174 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188741 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188741&action=edit Bug 23415: (QA follow-up) Move to Circulation::CanBookBeRenewed This moves the basic calculation for too_much_oweing out of the controller and into the class method. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #175 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188742 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188742&action=edit Bug 23415: Add new syspref AllowFineOverrideRenewing This patch adds new syspref AllowFineOverrideRenewing. It allows staff to renew items for patrons whose fines are over limit set in syspref FineNoRenewals. Otherwise renewing is prevented. If renewing items is allowed staff is still required to confirm if they really want to renew items for the patron. To test: 1. Apply this patch, update database and restart all services. 2. Find patron with fines over limit set in FineNoRenewals and renewable items. => Note that renewing is prevented with message "Cannot renew, the patron has a debt of..." 3. Set syspref AllowFineOverrideRenewing as "Allow". => Note that items can now be renewed and renewing them displays confirmation pop-up. Sponsored-by: Koha-Suomi Oy Signed-of-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #176 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188743 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188743&action=edit Bug 23415: Fix QA issues Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #177 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188744 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188744&action=edit Bug 23415: (QA follow-up) Fix logic and security issues This commit addresses several issues found in QA review: 1. Fixed logic bug in C4::Circulation::CanBookBeRenewed - Removed incorrect check of AllowFineOverrideRenewing preference - The function now always returns 'too_much_oweing' error when patron balance exceeds FineNoRenewals limit - AllowFineOverrideRenewing should only control UI override capability, not the core renewal check 2. Added permission check in circ/renew.pl - Override is now only allowed when both override_debt parameter is set AND AllowFineOverrideRenewing preference is enabled - Prevents security issue where staff could bypass the preference by crafting POST requests 3. Fixed template to conditionally display override button - Override button in renew.tt now only shows when AllowFineOverrideRenewing is enabled - Prevents confusion when override is not permitted 4. Added test coverage - Tests verify CanBookBeRenewed behavior with AllowFineOverrideRenewing both enabled and disabled - Confirms error is always returned regardless of preference setting 5. Fixed minor issues - Fixed typo: "he patron" -> "the patron" in checkouts.js - Fixed typo: OPACFineNoRenewalsIncludeCredit -> OPACFineNoRenewalsIncludeCredits in test All tests should pass successfully. Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #178 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188745 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188745&action=edit Bug 23415: (QA follow-up) Fix spelling: oweing -> owing Standardizes error code spelling across the codebase: - Changes 'too_much_oweing' to 'too_much_owing' - Changes 'auto_too_much_oweing' to 'auto_too_much_owing' The word "owing" is the correct spelling in English. Files updated: - C4/Circulation.pm - C4/SIP/Sip/MsgType.pm - circ/renew.pl - koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt - koha-tmpl/intranet-tmpl/prog/js/checkouts.js - koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt - koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt - misc/cronjobs/automatic_renewals.pl - opac/opac-reserve.pl - opac/opac-user.pl - t/db_dependent/Circulation.t All tests should pass successfully. Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #179 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188746 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188746&action=edit Bug 23415: Add Cypress test coverage for FineNoRenewals This commit adds end-to-end tests for the fine-based renewal blocking functionality using Cypress. Test coverage includes: 1. Blocking renewal when patron fines exceed FineNoRenewals limit 2. Displaying override button when AllowFineOverrideRenewing is enabled 3. Hiding override button when AllowFineOverrideRenewing is disabled 4. Successful override when permission is enabled 5. Allowing renewal when fines are below the limit The test creates test data including: - A patron with checkouts - Account fines that exceed the FineNoRenewals threshold - Tests both blocking and override scenarios Tests verify the UI behavior matches the business logic: - Error messages are displayed correctly - Override buttons appear based on preference setting - Override functionality works as expected - Security is maintained (no override without permission) To run these tests: npx cypress run --spec "t/cypress/integration/Circulation/FineNoRenewals_spec.ts" Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #180 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188747 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188747&action=edit Bug 23415: Add API tests for fine override on renewal This commit adds REST API tests to verify the x-koha-override: debt_limit functionality for renewals. Tests cover: - Renewal blocked due to excessive fines - Override fails when AllowFineOverrideRenewing is disabled - Override succeeds when AllowFineOverrideRenewing is enabled - Both /renewal and /renewals endpoints Test plan: 1. Run: prove t/db_dependent/api/v1/checkouts.t 2. All 110 tests should pass Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #181 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188748 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188748&action=edit Bug 23415: Add REST API support for fine override on renewal This commit adds support for the AllowFineOverrideRenewing functionality to the REST API renewal endpoints using the standard x-koha-override pattern. Changes: 1. Added x-koha-override header parameter to both renewal endpoints: - POST /checkouts/{checkout_id}/renewal - POST /checkouts/{checkout_id}/renewals 2. Updated Koha::REST::V1::Checkouts::renew() to: - Check for 'debt_limit' in the overrides stash - Check AllowFineOverrideRenewing preference when override is requested - Allow renewal override only when both: * x-koha-override header contains 'debt_limit' AND * AllowFineOverrideRenewing preference is enabled - Follows the established x-koha-override pattern used by other endpoints 3. Updated OpenAPI specification (swagger) to document the new header using the standard pattern with enum values Usage: curl -X POST /api/v1/checkouts/123/renewal \ -H "x-koha-override: debt_limit" The override only works for too_much_owing errors and requires the AllowFineOverrideRenewing system preference to be enabled. This implementation follows the same pattern as holds and other endpoints that support overrides, maintaining consistency across the REST API. Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #182 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188749 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188749&action=edit Bug 23415: Fix FineNoRenewals to use non_issues_charges and improve template This commit addresses two issues: 1. Fixes FineNoRenewals logic to properly use non_issues_charges Both CanBookBeRenewed() and _CanBookBeAutoRenewed() were incorrectly using the patron's total balance when checking against FineNoRenewals. They now use non_issues_charges, which returns only charges that should restrict checkouts (e.g., overdues, lost items) as defined by debit types with restricts_checkouts=1. This ensures charges like rental fees don't inappropriately block renewals. 2. Improves renewal template for AllowFineOverrideRenewing - Adds special handling for auto_too_much_owing error to check AllowFineOverrideRenewing preference instead of AllowRenewalLimitOverride - Adds missing id="barcode" attribute to input field for Cypress tests - Adds .dialog CSS class to error/success divs for consistent styling - Fixes HTML structure with proper <ul><li> wrapping - Adds btn btn-default classes to override button 3. Fixes Cypress test issues - Corrects data structure access: items[0] instead of item - Uses external_id instead of barcode (API field name) - Improves form submission selector specificity - Uses REPLACE INTO for system preference setup Test plan: 1. Run t/cypress/integration/Circulation/FineNoRenewals_spec.ts 2. Verify 4 out of 5 tests pass (one remaining template comparison issue) 3. Manually test that patrons with non-issue charges (rental fees) can renew when those charges alone don't exceed FineNoRenewals 4. Verify that patrons with issue-blocking charges (overdues) are properly blocked from renewal when exceeding FineNoRenewals Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #183 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188750 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188750&action=edit Bug 23415: Add debt override support to circulation checkout page This patch implements fine override functionality for the checkouts table on the circulation page (circ/circulation.pl), completing the debt override feature for all renewal workflows. Changes: - Added override_debt checkbox to checkouts-table.inc when AllowFineOverrideRenewing preference is enabled - Updated /svc/renew to accept and process override_debt parameter, matching the pattern used for override_limit - Enhanced circulation-api-client.js to pass override_debt parameter through the renewal API call - Implemented specific CSS classes for renewal error types (renewals-allowed-too_many, renewals-allowed-too_much_owing, etc.) to enable selective checkbox control - Modified override checkbox handlers to selectively enable only relevant renewal checkboxes based on the specific blocking error: * override_limit enables checkboxes for 'too_many' and 'on_reserve' * override_debt enables checkboxes for 'too_much_owing' and 'auto_too_much_owing' - Added AllowFineOverrideRenewing JavaScript variable to circulation.tt This provides clear visual feedback to staff about which renewals will be affected by each override option, improving usability and reducing confusion when multiple items have different blocking reasons. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #184 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 188751 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188751&action=edit Bug 23415: (follow-up) Respect OPACFineNoRenewalsIncludeCredits preference This patch fixes a regression introduced in the previous commits where we changed FineNoRenewals checking to use non_issues_charges instead of balance. While this change was correct for focusing on blocking charges, we inadvertently removed the handling of the OPACFineNoRenewalsIncludeCredits preference. The OPACFineNoRenewalsIncludeCredits preference controls whether unapplied account credits should be included when calculating if a patron exceeds the FineNoRenewals threshold. When this preference is enabled, the patron's net balance (debits minus credits) should be used instead of just their outstanding debits. This patch restores the preference handling for both: 1. Manual renewals in CanBookBeRenewed() 2. Auto renewals in _CanBookBeAutoRenewed() When OPACFineNoRenewalsIncludeCredits = 1: Use balance (all charges net of credits) When OPACFineNoRenewalsIncludeCredits = 0: Use non_issues_charges (only blocking charges, no credits) This ensures that patrons with sufficient credits can renew their items when the preference is enabled, while still maintaining the focus on non-issuing charges introduced in the previous commits. Test plan: 1. Run prove t/db_dependent/Circulation.t 2. All tests should pass, particularly the "auto_too_much_owing | OPACFineNoRenewalsBlockAutoRenew & OPACFineNoRenewalsIncludeCredits" subtest Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #185 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Checks are all happy at this stage, but I'd like a user-facing signoff and then I think we can upgrade my SO lines to a QA stamp -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA --- Comment #186 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- These sysprefs should get their names adjusted to remove the "OPAC" so they match the new name of FineNoRenewals: OPACFineNoRenewalsIncludeCredits, OPACFineNoRenewalsBlockAutoRenew. These patches also block renewals via the web-based selfcheck when the patron has fines over FineNoRenewals, which is a change in behavior. OPACFineNoRenewals does not currently block renewals via the web-based selfcheck. This needs a syspref to allow the choice of how self-check renewals are handled so users can maintain current behavior if desired. That said, I really like these changes and will be happy to help sign it off! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #187 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 189721 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189721&action=edit Bug 23415: Notify patron fines when renewing It is possible to renew items for patron who has fines over accepted limit on renew page or from checkout list. This patch adds confirmation alerts to these renew actions when patron has fines over "noissuescharge" syspref. Test plan: 1. Have patron with checkouts and fines over allowed limit 2. Renew checkouts either from renew page or checkout list => renew is successful 3. Apply patch 4. Repeat steps 1 and 2 => On renew page an alert is displayed and user has to confirm renew => When renew is done from checkout list confirmation pop-up is displayed Sponsored-by: Koha-Suomi Oy Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #188 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 189722 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189722&action=edit Bug 23415: Rename OPACFineNoRenewals OPACFineNoRenewals no longer applies just to OPAC. To avoid confusion rename it as FineNoRenewals and also rename all occurences in code. To test, confirm everything works as described in previous test plans. Also prove t/db_dependent/Circulation.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #189 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 189723 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189723&action=edit Bug 23415: (QA follow-up) Remove OPACFineNoRenewals from syspres.sql Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #190 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 189724 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189724&action=edit Bug 23415: (QA follow-up) Move to Circulation::CanBookBeRenewed This moves the basic calculation for too_much_oweing out of the controller and into the class method. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #191 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 189725 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189725&action=edit Bug 23415: Add new syspref AllowFineOverrideRenewing This patch adds new syspref AllowFineOverrideRenewing. It allows staff to renew items for patrons whose fines are over limit set in syspref FineNoRenewals. Otherwise renewing is prevented. If renewing items is allowed staff is still required to confirm if they really want to renew items for the patron. To test: 1. Apply this patch, update database and restart all services. 2. Find patron with fines over limit set in FineNoRenewals and renewable items. => Note that renewing is prevented with message "Cannot renew, the patron has a debt of..." 3. Set syspref AllowFineOverrideRenewing as "Allow". => Note that items can now be renewed and renewing them displays confirmation pop-up. Sponsored-by: Koha-Suomi Oy Signed-of-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #192 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 189726 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189726&action=edit Bug 23415: Fix QA issues Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #193 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 189727 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189727&action=edit Bug 23415: (QA follow-up) Fix logic and security issues This commit addresses several issues found in QA review: 1. Fixed logic bug in C4::Circulation::CanBookBeRenewed - Removed incorrect check of AllowFineOverrideRenewing preference - The function now always returns 'too_much_oweing' error when patron balance exceeds FineNoRenewals limit - AllowFineOverrideRenewing should only control UI override capability, not the core renewal check 2. Added permission check in circ/renew.pl - Override is now only allowed when both override_debt parameter is set AND AllowFineOverrideRenewing preference is enabled - Prevents security issue where staff could bypass the preference by crafting POST requests 3. Fixed template to conditionally display override button - Override button in renew.tt now only shows when AllowFineOverrideRenewing is enabled - Prevents confusion when override is not permitted 4. Added test coverage - Tests verify CanBookBeRenewed behavior with AllowFineOverrideRenewing both enabled and disabled - Confirms error is always returned regardless of preference setting 5. Fixed minor issues - Fixed typo: "he patron" -> "the patron" in checkouts.js - Fixed typo: OPACFineNoRenewalsIncludeCredit -> OPACFineNoRenewalsIncludeCredits in test All tests should pass successfully. Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #194 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 189728 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189728&action=edit Bug 23415: (QA follow-up) Fix spelling: oweing -> owing Standardizes error code spelling across the codebase: - Changes 'too_much_oweing' to 'too_much_owing' - Changes 'auto_too_much_oweing' to 'auto_too_much_owing' The word "owing" is the correct spelling in English. Files updated: - C4/Circulation.pm - C4/SIP/Sip/MsgType.pm - circ/renew.pl - koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt - koha-tmpl/intranet-tmpl/prog/js/checkouts.js - koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt - koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt - misc/cronjobs/automatic_renewals.pl - opac/opac-reserve.pl - opac/opac-user.pl - t/db_dependent/Circulation.t All tests should pass successfully. Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #195 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 189729 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189729&action=edit Bug 23415: Add Cypress test coverage for FineNoRenewals This commit adds end-to-end tests for the fine-based renewal blocking functionality using Cypress. Test coverage includes: 1. Blocking renewal when patron fines exceed FineNoRenewals limit 2. Displaying override button when AllowFineOverrideRenewing is enabled 3. Hiding override button when AllowFineOverrideRenewing is disabled 4. Successful override when permission is enabled 5. Allowing renewal when fines are below the limit The test creates test data including: - A patron with checkouts - Account fines that exceed the FineNoRenewals threshold - Tests both blocking and override scenarios Tests verify the UI behavior matches the business logic: - Error messages are displayed correctly - Override buttons appear based on preference setting - Override functionality works as expected - Security is maintained (no override without permission) To run these tests: npx cypress run --spec "t/cypress/integration/Circulation/FineNoRenewals_spec.ts" Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #196 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 189730 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189730&action=edit Bug 23415: Add API tests for fine override on renewal This commit adds REST API tests to verify the x-koha-override: debt_limit functionality for renewals. Tests cover: - Renewal blocked due to excessive fines - Override fails when AllowFineOverrideRenewing is disabled - Override succeeds when AllowFineOverrideRenewing is enabled - Both /renewal and /renewals endpoints Test plan: 1. Run: prove t/db_dependent/api/v1/checkouts.t 2. All 110 tests should pass Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #197 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 189731 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189731&action=edit Bug 23415: Add REST API support for fine override on renewal This commit adds support for the AllowFineOverrideRenewing functionality to the REST API renewal endpoints using the standard x-koha-override pattern. Changes: 1. Added x-koha-override header parameter to both renewal endpoints: - POST /checkouts/{checkout_id}/renewal - POST /checkouts/{checkout_id}/renewals 2. Updated Koha::REST::V1::Checkouts::renew() to: - Check for 'debt_limit' in the overrides stash - Check AllowFineOverrideRenewing preference when override is requested - Allow renewal override only when both: * x-koha-override header contains 'debt_limit' AND * AllowFineOverrideRenewing preference is enabled - Follows the established x-koha-override pattern used by other endpoints 3. Updated OpenAPI specification (swagger) to document the new header using the standard pattern with enum values Usage: curl -X POST /api/v1/checkouts/123/renewal \ -H "x-koha-override: debt_limit" The override only works for too_much_owing errors and requires the AllowFineOverrideRenewing system preference to be enabled. This implementation follows the same pattern as holds and other endpoints that support overrides, maintaining consistency across the REST API. Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #198 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 189732 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189732&action=edit Bug 23415: Fix FineNoRenewals to use non_issues_charges and improve template This commit addresses two issues: 1. Fixes FineNoRenewals logic to properly use non_issues_charges Both CanBookBeRenewed() and _CanBookBeAutoRenewed() were incorrectly using the patron's total balance when checking against FineNoRenewals. They now use non_issues_charges, which returns only charges that should restrict checkouts (e.g., overdues, lost items) as defined by debit types with restricts_checkouts=1. This ensures charges like rental fees don't inappropriately block renewals. 2. Improves renewal template for AllowFineOverrideRenewing - Adds special handling for auto_too_much_owing error to check AllowFineOverrideRenewing preference instead of AllowRenewalLimitOverride - Adds missing id="barcode" attribute to input field for Cypress tests - Adds .dialog CSS class to error/success divs for consistent styling - Fixes HTML structure with proper <ul><li> wrapping - Adds btn btn-default classes to override button 3. Fixes Cypress test issues - Corrects data structure access: items[0] instead of item - Uses external_id instead of barcode (API field name) - Improves form submission selector specificity - Uses REPLACE INTO for system preference setup Test plan: 1. Run t/cypress/integration/Circulation/FineNoRenewals_spec.ts 2. Verify 4 out of 5 tests pass (one remaining template comparison issue) 3. Manually test that patrons with non-issue charges (rental fees) can renew when those charges alone don't exceed FineNoRenewals 4. Verify that patrons with issue-blocking charges (overdues) are properly blocked from renewal when exceeding FineNoRenewals Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #199 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 189733 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189733&action=edit Bug 23415: Add debt override support to circulation checkout page This patch implements fine override functionality for the checkouts table on the circulation page (circ/circulation.pl), completing the debt override feature for all renewal workflows. Changes: - Added override_debt checkbox to checkouts-table.inc when AllowFineOverrideRenewing preference is enabled - Updated /svc/renew to accept and process override_debt parameter, matching the pattern used for override_limit - Enhanced circulation-api-client.js to pass override_debt parameter through the renewal API call - Implemented specific CSS classes for renewal error types (renewals-allowed-too_many, renewals-allowed-too_much_owing, etc.) to enable selective checkbox control - Modified override checkbox handlers to selectively enable only relevant renewal checkboxes based on the specific blocking error: * override_limit enables checkboxes for 'too_many' and 'on_reserve' * override_debt enables checkboxes for 'too_much_owing' and 'auto_too_much_owing' - Added AllowFineOverrideRenewing JavaScript variable to circulation.tt This provides clear visual feedback to staff about which renewals will be affected by each override option, improving usability and reducing confusion when multiple items have different blocking reasons. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #200 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 189734 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189734&action=edit Bug 23415: (follow-up) Respect OPACFineNoRenewalsIncludeCredits preference This patch fixes a regression introduced in the previous commits where we changed FineNoRenewals checking to use non_issues_charges instead of balance. While this change was correct for focusing on blocking charges, we inadvertently removed the handling of the OPACFineNoRenewalsIncludeCredits preference. The OPACFineNoRenewalsIncludeCredits preference controls whether unapplied account credits should be included when calculating if a patron exceeds the FineNoRenewals threshold. When this preference is enabled, the patron's net balance (debits minus credits) should be used instead of just their outstanding debits. This patch restores the preference handling for both: 1. Manual renewals in CanBookBeRenewed() 2. Auto renewals in _CanBookBeAutoRenewed() When OPACFineNoRenewalsIncludeCredits = 1: Use balance (all charges net of credits) When OPACFineNoRenewalsIncludeCredits = 0: Use non_issues_charges (only blocking charges, no credits) This ensures that patrons with sufficient credits can renew their items when the preference is enabled, while still maintaining the focus on non-issuing charges introduced in the previous commits. Test plan: 1. Run prove t/db_dependent/Circulation.t 2. All tests should pass, particularly the "auto_too_much_owing | OPACFineNoRenewalsBlockAutoRenew & OPACFineNoRenewalsIncludeCredits" subtest Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #201 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 189735 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189735&action=edit Bug 23415: (follow-up) Rename sysprefs and add self-checkout control This follow-up patch addresses feedback from the QA process: 1. System preference naming consistency Renamed the following preferences to remove "OPAC" prefix and align with the FineNoRenewals naming convention: - OPACFineNoRenewalsIncludeCredits → FineNoRenewalsIncludeCredits - OPACFineNoRenewalsBlockAutoRenew → FineNoRenewalsBlockAutoRenew 2. Self-checkout backward compatibility Added new system preference FineNoRenewalsBlockSelfCheckRenew to control whether fine limits block renewals via web-based self-checkout. Previously, OPACFineNoRenewals did not block self-checkout renewals. With the rename to FineNoRenewals, this behavior changed. The new preference defaults to "0" (don't block) to maintain backward compatibility, allowing sites to opt-in to blocking self-checkout renewals when patrons exceed the fine threshold. Test plan: 1. Run prove t/db_dependent/Circulation.t - all tests should pass 2. Run prove t/db_dependent/api/v1/checkouts.t - all tests should pass 3. Verify system preferences are correctly renamed in the admin interface 4. Test self-checkout renewals with FineNoRenewalsBlockSelfCheckRenew set to 0 (default) - renewals should work even when fines exceed limit 5. Test self-checkout renewals with FineNoRenewalsBlockSelfCheckRenew set to 1 - renewals should be blocked when fines exceed limit Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #188738|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #188739|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #188740|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #188741|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #188742|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #188743|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #188744|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #188745|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #188746|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #188747|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #188748|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #188749|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #188750|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #188751|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #202 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 189736 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189736&action=edit Bug 23415: Notify patron fines when renewing It is possible to renew items for patron who has fines over accepted limit on renew page or from checkout list. This patch adds confirmation alerts to these renew actions when patron has fines over "noissuescharge" syspref. Test plan: 1. Have patron with checkouts and fines over allowed limit 2. Renew checkouts either from renew page or checkout list => renew is successful 3. Apply patch 4. Repeat steps 1 and 2 => On renew page an alert is displayed and user has to confirm renew => When renew is done from checkout list confirmation pop-up is displayed Sponsored-by: Koha-Suomi Oy Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #203 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 189737 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189737&action=edit Bug 23415: Rename OPACFineNoRenewals OPACFineNoRenewals no longer applies just to OPAC. To avoid confusion rename it as FineNoRenewals and also rename all occurences in code. To test, confirm everything works as described in previous test plans. Also prove t/db_dependent/Circulation.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #204 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 189738 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189738&action=edit Bug 23415: (QA follow-up) Remove OPACFineNoRenewals from syspres.sql Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #205 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 189739 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189739&action=edit Bug 23415: (QA follow-up) Move to Circulation::CanBookBeRenewed This moves the basic calculation for too_much_oweing out of the controller and into the class method. Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #206 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 189740 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189740&action=edit Bug 23415: Add new syspref AllowFineOverrideRenewing This patch adds new syspref AllowFineOverrideRenewing. It allows staff to renew items for patrons whose fines are over limit set in syspref FineNoRenewals. Otherwise renewing is prevented. If renewing items is allowed staff is still required to confirm if they really want to renew items for the patron. To test: 1. Apply this patch, update database and restart all services. 2. Find patron with fines over limit set in FineNoRenewals and renewable items. => Note that renewing is prevented with message "Cannot renew, the patron has a debt of..." 3. Set syspref AllowFineOverrideRenewing as "Allow". => Note that items can now be renewed and renewing them displays confirmation pop-up. Sponsored-by: Koha-Suomi Oy Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-of-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #207 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 189741 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189741&action=edit Bug 23415: Fix QA issues Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #208 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 189742 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189742&action=edit Bug 23415: (QA follow-up) Fix logic and security issues This commit addresses several issues found in QA review: 1. Fixed logic bug in C4::Circulation::CanBookBeRenewed - Removed incorrect check of AllowFineOverrideRenewing preference - The function now always returns 'too_much_oweing' error when patron balance exceeds FineNoRenewals limit - AllowFineOverrideRenewing should only control UI override capability, not the core renewal check 2. Added permission check in circ/renew.pl - Override is now only allowed when both override_debt parameter is set AND AllowFineOverrideRenewing preference is enabled - Prevents security issue where staff could bypass the preference by crafting POST requests 3. Fixed template to conditionally display override button - Override button in renew.tt now only shows when AllowFineOverrideRenewing is enabled - Prevents confusion when override is not permitted 4. Added test coverage - Tests verify CanBookBeRenewed behavior with AllowFineOverrideRenewing both enabled and disabled - Confirms error is always returned regardless of preference setting 5. Fixed minor issues - Fixed typo: "he patron" -> "the patron" in checkouts.js - Fixed typo: OPACFineNoRenewalsIncludeCredit -> OPACFineNoRenewalsIncludeCredits in test All tests should pass successfully. Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #209 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 189743 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189743&action=edit Bug 23415: (QA follow-up) Fix spelling: oweing -> owing Standardizes error code spelling across the codebase: - Changes 'too_much_oweing' to 'too_much_owing' - Changes 'auto_too_much_oweing' to 'auto_too_much_owing' The word "owing" is the correct spelling in English. Files updated: - C4/Circulation.pm - C4/SIP/Sip/MsgType.pm - circ/renew.pl - koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt - koha-tmpl/intranet-tmpl/prog/js/checkouts.js - koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt - koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt - misc/cronjobs/automatic_renewals.pl - opac/opac-reserve.pl - opac/opac-user.pl - t/db_dependent/Circulation.t All tests should pass successfully. Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #210 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 189744 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189744&action=edit Bug 23415: Add Cypress test coverage for FineNoRenewals This commit adds end-to-end tests for the fine-based renewal blocking functionality using Cypress. Test coverage includes: 1. Blocking renewal when patron fines exceed FineNoRenewals limit 2. Displaying override button when AllowFineOverrideRenewing is enabled 3. Hiding override button when AllowFineOverrideRenewing is disabled 4. Successful override when permission is enabled 5. Allowing renewal when fines are below the limit The test creates test data including: - A patron with checkouts - Account fines that exceed the FineNoRenewals threshold - Tests both blocking and override scenarios Tests verify the UI behavior matches the business logic: - Error messages are displayed correctly - Override buttons appear based on preference setting - Override functionality works as expected - Security is maintained (no override without permission) To run these tests: npx cypress run --spec "t/cypress/integration/Circulation/FineNoRenewals_spec.ts" Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #211 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 189745 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189745&action=edit Bug 23415: Add API tests for fine override on renewal This commit adds REST API tests to verify the x-koha-override: debt_limit functionality for renewals. Tests cover: - Renewal blocked due to excessive fines - Override fails when AllowFineOverrideRenewing is disabled - Override succeeds when AllowFineOverrideRenewing is enabled - Both /renewal and /renewals endpoints Test plan: 1. Run: prove t/db_dependent/api/v1/checkouts.t 2. All 110 tests should pass Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #212 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 189746 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189746&action=edit Bug 23415: Add REST API support for fine override on renewal This commit adds support for the AllowFineOverrideRenewing functionality to the REST API renewal endpoints using the standard x-koha-override pattern. Changes: 1. Added x-koha-override header parameter to both renewal endpoints: - POST /checkouts/{checkout_id}/renewal - POST /checkouts/{checkout_id}/renewals 2. Updated Koha::REST::V1::Checkouts::renew() to: - Check for 'debt_limit' in the overrides stash - Check AllowFineOverrideRenewing preference when override is requested - Allow renewal override only when both: * x-koha-override header contains 'debt_limit' AND * AllowFineOverrideRenewing preference is enabled - Follows the established x-koha-override pattern used by other endpoints 3. Updated OpenAPI specification (swagger) to document the new header using the standard pattern with enum values Usage: curl -X POST /api/v1/checkouts/123/renewal \ -H "x-koha-override: debt_limit" The override only works for too_much_owing errors and requires the AllowFineOverrideRenewing system preference to be enabled. This implementation follows the same pattern as holds and other endpoints that support overrides, maintaining consistency across the REST API. Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #213 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 189747 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189747&action=edit Bug 23415: Fix FineNoRenewals to use non_issues_charges and improve template This commit addresses two issues: 1. Fixes FineNoRenewals logic to properly use non_issues_charges Both CanBookBeRenewed() and _CanBookBeAutoRenewed() were incorrectly using the patron's total balance when checking against FineNoRenewals. They now use non_issues_charges, which returns only charges that should restrict checkouts (e.g., overdues, lost items) as defined by debit types with restricts_checkouts=1. This ensures charges like rental fees don't inappropriately block renewals. 2. Improves renewal template for AllowFineOverrideRenewing - Adds special handling for auto_too_much_owing error to check AllowFineOverrideRenewing preference instead of AllowRenewalLimitOverride - Adds missing id="barcode" attribute to input field for Cypress tests - Adds .dialog CSS class to error/success divs for consistent styling - Fixes HTML structure with proper <ul><li> wrapping - Adds btn btn-default classes to override button 3. Fixes Cypress test issues - Corrects data structure access: items[0] instead of item - Uses external_id instead of barcode (API field name) - Improves form submission selector specificity - Uses REPLACE INTO for system preference setup Test plan: 1. Run t/cypress/integration/Circulation/FineNoRenewals_spec.ts 2. Verify 4 out of 5 tests pass (one remaining template comparison issue) 3. Manually test that patrons with non-issue charges (rental fees) can renew when those charges alone don't exceed FineNoRenewals 4. Verify that patrons with issue-blocking charges (overdues) are properly blocked from renewal when exceeding FineNoRenewals Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #214 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 189748 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189748&action=edit Bug 23415: Add debt override support to circulation checkout page This patch implements fine override functionality for the checkouts table on the circulation page (circ/circulation.pl), completing the debt override feature for all renewal workflows. Changes: - Added override_debt checkbox to checkouts-table.inc when AllowFineOverrideRenewing preference is enabled - Updated /svc/renew to accept and process override_debt parameter, matching the pattern used for override_limit - Enhanced circulation-api-client.js to pass override_debt parameter through the renewal API call - Implemented specific CSS classes for renewal error types (renewals-allowed-too_many, renewals-allowed-too_much_owing, etc.) to enable selective checkbox control - Modified override checkbox handlers to selectively enable only relevant renewal checkboxes based on the specific blocking error: * override_limit enables checkboxes for 'too_many' and 'on_reserve' * override_debt enables checkboxes for 'too_much_owing' and 'auto_too_much_owing' - Added AllowFineOverrideRenewing JavaScript variable to circulation.tt This provides clear visual feedback to staff about which renewals will be affected by each override option, improving usability and reducing confusion when multiple items have different blocking reasons. Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #215 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 189749 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189749&action=edit Bug 23415: (follow-up) Respect OPACFineNoRenewalsIncludeCredits preference This patch fixes a regression introduced in the previous commits where we changed FineNoRenewals checking to use non_issues_charges instead of balance. While this change was correct for focusing on blocking charges, we inadvertently removed the handling of the OPACFineNoRenewalsIncludeCredits preference. The OPACFineNoRenewalsIncludeCredits preference controls whether unapplied account credits should be included when calculating if a patron exceeds the FineNoRenewals threshold. When this preference is enabled, the patron's net balance (debits minus credits) should be used instead of just their outstanding debits. This patch restores the preference handling for both: 1. Manual renewals in CanBookBeRenewed() 2. Auto renewals in _CanBookBeAutoRenewed() When OPACFineNoRenewalsIncludeCredits = 1: Use balance (all charges net of credits) When OPACFineNoRenewalsIncludeCredits = 0: Use non_issues_charges (only blocking charges, no credits) This ensures that patrons with sufficient credits can renew their items when the preference is enabled, while still maintaining the focus on non-issuing charges introduced in the previous commits. Test plan: 1. Run prove t/db_dependent/Circulation.t 2. All tests should pass, particularly the "auto_too_much_owing | OPACFineNoRenewalsBlockAutoRenew & OPACFineNoRenewalsIncludeCredits" subtest Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #216 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 189750 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189750&action=edit Bug 23415: (follow-up) Rename sysprefs and add self-checkout control This follow-up patch addresses feedback from the QA process: 1. System preference naming consistency Renamed the following preferences to remove "OPAC" prefix and align with the FineNoRenewals naming convention: - OPACFineNoRenewalsIncludeCredits → FineNoRenewalsIncludeCredits - OPACFineNoRenewalsBlockAutoRenew → FineNoRenewalsBlockAutoRenew 2. Self-checkout backward compatibility Added new system preference FineNoRenewalsBlockSelfCheckRenew to control whether fine limits block renewals via web-based self-checkout. Previously, OPACFineNoRenewals did not block self-checkout renewals. With the rename to FineNoRenewals, this behavior changed. The new preference defaults to "0" (don't block) to maintain backward compatibility, allowing sites to opt-in to blocking self-checkout renewals when patrons exceed the fine threshold. Test plan: 1. Run prove t/db_dependent/Circulation.t - all tests should pass 2. Run prove t/db_dependent/api/v1/checkouts.t - all tests should pass 3. Verify system preferences are correctly renamed in the admin interface 4. Test self-checkout renewals with FineNoRenewalsBlockSelfCheckRenew set to 0 (default) - renewals should work even when fines exceed limit 5. Test self-checkout renewals with FineNoRenewalsBlockSelfCheckRenew set to 1 - renewals should be blocked when fines exceed limit Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #189721|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #189722|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #189723|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #189724|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #189725|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #189726|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #189727|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #189728|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #189729|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #189730|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #189731|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #189732|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #189733|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #189734|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #189735|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Passed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rel_26_05_candidate -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Sarah Cornell <sbcornell@cityofportsmouth.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sbcornell@cityofportsmouth. | |com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #217 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- I have concerns about the oweing -> owing patch. This is going to break a lot of auto renewal notices for us. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Failed QA --- Comment #218 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- I would prefer that the spelling change of oweing to owing be changed in a separate bug report. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #219 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- (In reply to Lucas Gass (lukeg) from comment #217)
I have concerns about the oweing -> owing patch. This is going to break a lot of auto renewal notices for us.
I tried dropping the patch, but there are still a lot code using owing instead of oweing. Those should probably be changed too. So I was wondering, is it okay if I create a separate patch where all owings are changed to oweing rather than dropping the patch and then handling rest of the patches one by one? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #220 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- (In reply to Emmi Takkinen from comment #219)
(In reply to Lucas Gass (lukeg) from comment #217)
I have concerns about the oweing -> owing patch. This is going to break a lot of auto renewal notices for us.
I tried dropping the patch, but there are still a lot code using owing instead of oweing. Those should probably be changed too. So I was wondering, is it okay if I create a separate patch where all owings are changed to oweing rather than dropping the patch and then handling rest of the patches one by one?
For the change of oweing -> owing we really need a separate bug that would also include DB updates of the default auto renewal notices and the issues table. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #221 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- (In reply to Lucas Gass (lukeg) from comment #220)
(In reply to Emmi Takkinen from comment #219)
(In reply to Lucas Gass (lukeg) from comment #217)
I have concerns about the oweing -> owing patch. This is going to break a lot of auto renewal notices for us.
I tried dropping the patch, but there are still a lot code using owing instead of oweing. Those should probably be changed too. So I was wondering, is it okay if I create a separate patch where all owings are changed to oweing rather than dropping the patch and then handling rest of the patches one by one?
For the change of oweing -> owing we really need a separate bug that would also include DB updates of the default auto renewal notices and the issues table.
Yes, I agree with that. But what I meant with my comment was that should I change all the owing terms back to oweing in a new patch in this bug or should I drop the "Bug 23415: (QA follow-up) Fix spelling: oweing -> owing" patch and then change all the remaining owing words to oweing. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #222 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- What about just adding the dB update to fix existing notices... -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Sponsorship status|--- |Sponsored Comma delimited| |Koha-Suomi Oy, OpenFifth list of Sponsors| |<https://openfifth.co.uk/> Status|Failed QA |Passed QA Patch complexity|--- |Medium patch -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #189736|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #189737|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #189738|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #189739|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #189740|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #189741|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #189742|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #189743|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #189744|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #189745|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #189746|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #189747|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #189748|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #189749|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #189750|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #223 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193077 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193077&action=edit Bug 23415: Notify patron fines when renewing It is possible to renew items for patron who has fines over accepted limit on renew page or from checkout list. This patch adds confirmation alerts to these renew actions when patron has fines over "noissuescharge" syspref. Test plan: 1. Have patron with checkouts and fines over allowed limit 2. Renew checkouts either from renew page or checkout list => renew is successful 3. Apply patch 4. Repeat steps 1 and 2 => On renew page an alert is displayed and user has to confirm renew => When renew is done from checkout list confirmation pop-up is displayed Sponsored-by: Koha-Suomi Oy Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #224 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193078 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193078&action=edit Bug 23415: Rename OPACFineNoRenewals OPACFineNoRenewals no longer applies just to OPAC. To avoid confusion rename it as FineNoRenewals and also rename all occurences in code. To test, confirm everything works as described in previous test plans. Also prove t/db_dependent/Circulation.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #225 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193079 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193079&action=edit Bug 23415: (QA follow-up) Remove OPACFineNoRenewals from syspres.sql Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #226 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193080 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193080&action=edit Bug 23415: (QA follow-up) Move to Circulation::CanBookBeRenewed This moves the basic calculation for too_much_oweing out of the controller and into the class method. Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #227 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193081 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193081&action=edit Bug 23415: Add new syspref AllowFineOverrideRenewing This patch adds new syspref AllowFineOverrideRenewing. It allows staff to renew items for patrons whose fines are over limit set in syspref FineNoRenewals. Otherwise renewing is prevented. If renewing items is allowed staff is still required to confirm if they really want to renew items for the patron. To test: 1. Apply this patch, update database and restart all services. 2. Find patron with fines over limit set in FineNoRenewals and renewable items. => Note that renewing is prevented with message "Cannot renew, the patron has a debt of..." 3. Set syspref AllowFineOverrideRenewing as "Allow". => Note that items can now be renewed and renewing them displays confirmation pop-up. Sponsored-by: Koha-Suomi Oy Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-of-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #228 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193082 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193082&action=edit Bug 23415: Fix QA issues Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #229 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193083 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193083&action=edit Bug 23415: (QA follow-up) Fix logic and security issues This commit addresses several issues found in QA review: 1. Fixed logic bug in C4::Circulation::CanBookBeRenewed - Removed incorrect check of AllowFineOverrideRenewing preference - The function now always returns 'too_much_oweing' error when patron balance exceeds FineNoRenewals limit - AllowFineOverrideRenewing should only control UI override capability, not the core renewal check 2. Added permission check in circ/renew.pl - Override is now only allowed when both override_debt parameter is set AND AllowFineOverrideRenewing preference is enabled - Prevents security issue where staff could bypass the preference by crafting POST requests 3. Fixed template to conditionally display override button - Override button in renew.tt now only shows when AllowFineOverrideRenewing is enabled - Prevents confusion when override is not permitted 4. Added test coverage - Tests verify CanBookBeRenewed behavior with AllowFineOverrideRenewing both enabled and disabled - Confirms error is always returned regardless of preference setting 5. Fixed minor issues - Fixed typo: "he patron" -> "the patron" in checkouts.js - Fixed typo: OPACFineNoRenewalsIncludeCredit -> OPACFineNoRenewalsIncludeCredits in test All tests should pass successfully. Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #230 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193084 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193084&action=edit Bug 23415: (QA follow-up) Fix spelling: oweing -> owing Standardizes error code spelling across the codebase: - Changes 'too_much_oweing' to 'too_much_owing' - Changes 'auto_too_much_oweing' to 'auto_too_much_owing' The word "owing" is the correct spelling in English. Files updated: - C4/Circulation.pm - C4/SIP/Sip/MsgType.pm - circ/renew.pl - koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt - koha-tmpl/intranet-tmpl/prog/js/checkouts.js - koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt - koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt - misc/cronjobs/automatic_renewals.pl - opac/opac-reserve.pl - opac/opac-user.pl - t/db_dependent/Circulation.t All tests should pass successfully. Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #231 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193085 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193085&action=edit Bug 23415: Add Cypress test coverage for FineNoRenewals This commit adds end-to-end tests for the fine-based renewal blocking functionality using Cypress. Test coverage includes: 1. Blocking renewal when patron fines exceed FineNoRenewals limit 2. Displaying override button when AllowFineOverrideRenewing is enabled 3. Hiding override button when AllowFineOverrideRenewing is disabled 4. Successful override when permission is enabled 5. Allowing renewal when fines are below the limit The test creates test data including: - A patron with checkouts - Account fines that exceed the FineNoRenewals threshold - Tests both blocking and override scenarios Tests verify the UI behavior matches the business logic: - Error messages are displayed correctly - Override buttons appear based on preference setting - Override functionality works as expected - Security is maintained (no override without permission) To run these tests: npx cypress run --spec "t/cypress/integration/Circulation/FineNoRenewals_spec.ts" Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #232 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193086 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193086&action=edit Bug 23415: Add API tests for fine override on renewal This commit adds REST API tests to verify the x-koha-override: debt_limit functionality for renewals. Tests cover: - Renewal blocked due to excessive fines - Override fails when AllowFineOverrideRenewing is disabled - Override succeeds when AllowFineOverrideRenewing is enabled - Both /renewal and /renewals endpoints Test plan: 1. Run: prove t/db_dependent/api/v1/checkouts.t 2. All 110 tests should pass Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #233 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193087 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193087&action=edit Bug 23415: Add REST API support for fine override on renewal This commit adds support for the AllowFineOverrideRenewing functionality to the REST API renewal endpoints using the standard x-koha-override pattern. Changes: 1. Added x-koha-override header parameter to both renewal endpoints: - POST /checkouts/{checkout_id}/renewal - POST /checkouts/{checkout_id}/renewals 2. Updated Koha::REST::V1::Checkouts::renew() to: - Check for 'debt_limit' in the overrides stash - Check AllowFineOverrideRenewing preference when override is requested - Allow renewal override only when both: * x-koha-override header contains 'debt_limit' AND * AllowFineOverrideRenewing preference is enabled - Follows the established x-koha-override pattern used by other endpoints 3. Updated OpenAPI specification (swagger) to document the new header using the standard pattern with enum values Usage: curl -X POST /api/v1/checkouts/123/renewal \ -H "x-koha-override: debt_limit" The override only works for too_much_owing errors and requires the AllowFineOverrideRenewing system preference to be enabled. This implementation follows the same pattern as holds and other endpoints that support overrides, maintaining consistency across the REST API. Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #234 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193088 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193088&action=edit Bug 23415: Fix FineNoRenewals to use non_issues_charges and improve template This commit addresses two issues: 1. Fixes FineNoRenewals logic to properly use non_issues_charges Both CanBookBeRenewed() and _CanBookBeAutoRenewed() were incorrectly using the patron's total balance when checking against FineNoRenewals. They now use non_issues_charges, which returns only charges that should restrict checkouts (e.g., overdues, lost items) as defined by debit types with restricts_checkouts=1. This ensures charges like rental fees don't inappropriately block renewals. 2. Improves renewal template for AllowFineOverrideRenewing - Adds special handling for auto_too_much_owing error to check AllowFineOverrideRenewing preference instead of AllowRenewalLimitOverride - Adds missing id="barcode" attribute to input field for Cypress tests - Adds .dialog CSS class to error/success divs for consistent styling - Fixes HTML structure with proper <ul><li> wrapping - Adds btn btn-default classes to override button 3. Fixes Cypress test issues - Corrects data structure access: items[0] instead of item - Uses external_id instead of barcode (API field name) - Improves form submission selector specificity - Uses REPLACE INTO for system preference setup Test plan: 1. Run t/cypress/integration/Circulation/FineNoRenewals_spec.ts 2. Verify 4 out of 5 tests pass (one remaining template comparison issue) 3. Manually test that patrons with non-issue charges (rental fees) can renew when those charges alone don't exceed FineNoRenewals 4. Verify that patrons with issue-blocking charges (overdues) are properly blocked from renewal when exceeding FineNoRenewals Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #235 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193089 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193089&action=edit Bug 23415: Add debt override support to circulation checkout page This patch implements fine override functionality for the checkouts table on the circulation page (circ/circulation.pl), completing the debt override feature for all renewal workflows. Changes: - Added override_debt checkbox to checkouts-table.inc when AllowFineOverrideRenewing preference is enabled - Updated /svc/renew to accept and process override_debt parameter, matching the pattern used for override_limit - Enhanced circulation-api-client.js to pass override_debt parameter through the renewal API call - Implemented specific CSS classes for renewal error types (renewals-allowed-too_many, renewals-allowed-too_much_owing, etc.) to enable selective checkbox control - Modified override checkbox handlers to selectively enable only relevant renewal checkboxes based on the specific blocking error: * override_limit enables checkboxes for 'too_many' and 'on_reserve' * override_debt enables checkboxes for 'too_much_owing' and 'auto_too_much_owing' - Added AllowFineOverrideRenewing JavaScript variable to circulation.tt This provides clear visual feedback to staff about which renewals will be affected by each override option, improving usability and reducing confusion when multiple items have different blocking reasons. Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #236 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193090 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193090&action=edit Bug 23415: (follow-up) Respect OPACFineNoRenewalsIncludeCredits preference This patch fixes a regression introduced in the previous commits where we changed FineNoRenewals checking to use non_issues_charges instead of balance. While this change was correct for focusing on blocking charges, we inadvertently removed the handling of the OPACFineNoRenewalsIncludeCredits preference. The OPACFineNoRenewalsIncludeCredits preference controls whether unapplied account credits should be included when calculating if a patron exceeds the FineNoRenewals threshold. When this preference is enabled, the patron's net balance (debits minus credits) should be used instead of just their outstanding debits. This patch restores the preference handling for both: 1. Manual renewals in CanBookBeRenewed() 2. Auto renewals in _CanBookBeAutoRenewed() When OPACFineNoRenewalsIncludeCredits = 1: Use balance (all charges net of credits) When OPACFineNoRenewalsIncludeCredits = 0: Use non_issues_charges (only blocking charges, no credits) This ensures that patrons with sufficient credits can renew their items when the preference is enabled, while still maintaining the focus on non-issuing charges introduced in the previous commits. Test plan: 1. Run prove t/db_dependent/Circulation.t 2. All tests should pass, particularly the "auto_too_much_owing | OPACFineNoRenewalsBlockAutoRenew & OPACFineNoRenewalsIncludeCredits" subtest Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #237 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193091 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193091&action=edit Bug 23415: (follow-up) Rename sysprefs and add self-checkout control This follow-up patch addresses feedback from the QA process: 1. System preference naming consistency Renamed the following preferences to remove "OPAC" prefix and align with the FineNoRenewals naming convention: - OPACFineNoRenewalsIncludeCredits → FineNoRenewalsIncludeCredits - OPACFineNoRenewalsBlockAutoRenew → FineNoRenewalsBlockAutoRenew 2. Self-checkout backward compatibility Added new system preference FineNoRenewalsBlockSelfCheckRenew to control whether fine limits block renewals via web-based self-checkout. Previously, OPACFineNoRenewals did not block self-checkout renewals. With the rename to FineNoRenewals, this behavior changed. The new preference defaults to "0" (don't block) to maintain backward compatibility, allowing sites to opt-in to blocking self-checkout renewals when patrons exceed the fine threshold. Test plan: 1. Run prove t/db_dependent/Circulation.t - all tests should pass 2. Run prove t/db_dependent/api/v1/checkouts.t - all tests should pass 3. Verify system preferences are correctly renamed in the admin interface 4. Test self-checkout renewals with FineNoRenewalsBlockSelfCheckRenew set to 0 (default) - renewals should work even when fines exceed limit 5. Test self-checkout renewals with FineNoRenewalsBlockSelfCheckRenew set to 1 - renewals should be blocked when fines exceed limit Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #238 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 193092 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193092&action=edit Bug 23415: (follow-up) Fix typo 'oweing' -> 'owing' in templates and notices This patch corrects a typo in the auto renewal error code and related notice templates: - Adds database update to fix existing notice templates in letter table - Fixes sample notices for new installations - Fixes renew_strings.inc template include The error code changes from 'auto_too_much_oweing' to 'auto_too_much_owing' throughout. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |release-notes-needed -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #239 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- I've previously asked for release notes here and added the keyword. Good release notes on this one seem important, including some mention of the DB update to change oweing -> owing. Please add release notes. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the| |It was possible to renew release notes| |items for patrons who had | |fines over accepted limit | |on renew page or from | |checkout list. This patch | |adds a new systempreference | |AllowFineOverrideRenewing | |to allow staff to renew | |items for patrons with | |fines greater than value in | |FineNoRenewal (previously | |OPACFineNoRenewals). | |### New features | |- New systempreference | |AllowFineOverrideRenewing | |is added. It allows staff | |to renew items for patrons | |whose fines are over limit | |set in syspref | |FineNoRenewals. Otherwise | |renewing is prevented. If | |renewing items is allowed | |staff is still required to | |confirm if they really want | |to renew items for the | |patron. | |### Changes made to | |systempreferences and API | |endpoints | |- Following | |systempreferences have been | |renamed since they are now | |used also in staff | |interface: | | - OPACFineNoRenewals has | |been renamed as | |FineNoRenewal. | | - | |OPACFineNoRenewalsIncludeCr | |edits has been renamed as | |FineNoRenewalsIncludeCredit | |s. | | - | |OPACFineNoRenewalsBlockAuto | |Renew has been renamed as | |FineNoRenewalsBlockAutoRene | |w. | |- Support for the | |AllowFineOverrideRenewing | |functionality to the REST | |API renewal endpoints has | |been added. | |### Important notes | |- There were several places | |in code where auto renewal | |error code was written as | |"auto_too_much_oweing" | |instead of | |"auto_too_much_owing". Same | |typo was also present in | |example notice templates | |and possibly in notice | |templates saved to | |database. Typo has been | |automatically fixed with a | |database update. --- Comment #240 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- I added release notes. If I have missed something or the explanations don't make sense or are too short etc. please feel free to adjust (or tell me to adjust :D). -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the|It was possible to renew |It was possible to renew release notes|items for patrons who had |items for patrons who had |fines over accepted limit |fines over the accepted |on renew page or from |limit on the renew item |checkout list. This patch |page or from their list of |adds a new systempreference |checkouts. |AllowFineOverrideRenewing | |to allow staff to renew |This enhancement adds a new |items for patrons with |system preference, |fines greater than value in |`AllowFineOverrideRenewing` |FineNoRenewal (previously |, to allow staff to renew |OPACFineNoRenewals). |items for patrons with |### New features |fines greater than value in |- New systempreference |`FineNoRenewal` (previously |AllowFineOverrideRenewing |OPACFineNoRenewals). |is added. It allows staff | |to renew items for patrons |### New features |whose fines are over limit | |set in syspref |- New system preference |FineNoRenewals. Otherwise |`AllowFineOverrideRenewing` |renewing is prevented. If |. It allows staff to renew |renewing items is allowed |items for patrons whose |staff is still required to |fines are over the amount |confirm if they really want |set in the `FineNoRenewals` |to renew items for the |system preference. |patron. |Otherwise, renewing is |### Changes made to |prevented. If renewing |systempreferences and API |items is allowed, staff are |endpoints |still required to confirm |- Following |if they really want to |systempreferences have been |renew items for the patron. |renamed since they are now | |used also in staff |### Changes made to system |interface: |preferences and API | - OPACFineNoRenewals has |endpoints |been renamed as | |FineNoRenewal. |- These system preferences | - |were renamed as they are |OPACFineNoRenewalsIncludeCr |now also used in the staff |edits has been renamed as |interface (not just the |FineNoRenewalsIncludeCredit |OPAC): |s. | - OPACFineNoRenewals was | - |renamed FineNoRenewal. |OPACFineNoRenewalsBlockAuto | - |Renew has been renamed as |OPACFineNoRenewalsIncludeCr |FineNoRenewalsBlockAutoRene |edits was renamed |w. |FineNoRenewalsIncludeCredit |- Support for the |s. |AllowFineOverrideRenewing | - |functionality to the REST |OPACFineNoRenewalsBlockAuto |API renewal endpoints has |Renew was renamed |been added. |FineNoRenewalsBlockAutoRene |### Important notes |w. |- There were several places |- Adds support to the REST |in code where auto renewal |API renewal endpoints for |error code was written as |the |"auto_too_much_oweing" |AllowFineOverrideRenewing |instead of |functionality. |"auto_too_much_owing". Same | |typo was also present in |### Important notes |example notice templates | |and possibly in notice |- There were several places |templates saved to |in the code where the |database. Typo has been |auto-renewal error code was |automatically fixed with a |written as |database update. |"auto_too_much_oweing" | |instead of | |"auto_too_much_owing". | |- The same typo was also | |present in example notices | |templates, and possibly in | |notice templates saved in | |the database. | |- The typo is automatically | |fixed with a database | |update. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|release-notes-needed | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Patch doesn't apply -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #193077|0 |1 is obsolete| | --- Comment #241 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 194625 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=194625&action=edit Bug 23415: Notify patron fines when renewing It is possible to renew items for patron who has fines over accepted limit on renew page or from checkout list. This patch adds confirmation alerts to these renew actions when patron has fines over "noissuescharge" syspref. Test plan: 1. Have patron with checkouts and fines over allowed limit 2. Renew checkouts either from renew page or checkout list => renew is successful 3. Apply patch 4. Repeat steps 1 and 2 => On renew page an alert is displayed and user has to confirm renew => When renew is done from checkout list confirmation pop-up is displayed Sponsored-by: Koha-Suomi Oy Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #193078|0 |1 is obsolete| | --- Comment #242 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 194626 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=194626&action=edit Bug 23415: Rename OPACFineNoRenewals OPACFineNoRenewals no longer applies just to OPAC. To avoid confusion rename it as FineNoRenewals and also rename all occurences in code. To test, confirm everything works as described in previous test plans. Also prove t/db_dependent/Circulation.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #193079|0 |1 is obsolete| | --- Comment #243 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 194627 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=194627&action=edit Bug 23415: (QA follow-up) Remove OPACFineNoRenewals from syspres.sql Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #193080|0 |1 is obsolete| | --- Comment #244 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 194628 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=194628&action=edit Bug 23415: (QA follow-up) Move to Circulation::CanBookBeRenewed This moves the basic calculation for too_much_oweing out of the controller and into the class method. Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #193081|0 |1 is obsolete| | --- Comment #245 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 194629 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=194629&action=edit Bug 23415: Add new syspref AllowFineOverrideRenewing This patch adds new syspref AllowFineOverrideRenewing. It allows staff to renew items for patrons whose fines are over limit set in syspref FineNoRenewals. Otherwise renewing is prevented. If renewing items is allowed staff is still required to confirm if they really want to renew items for the patron. To test: 1. Apply this patch, update database and restart all services. 2. Find patron with fines over limit set in FineNoRenewals and renewable items. => Note that renewing is prevented with message "Cannot renew, the patron has a debt of..." 3. Set syspref AllowFineOverrideRenewing as "Allow". => Note that items can now be renewed and renewing them displays confirmation pop-up. Sponsored-by: Koha-Suomi Oy Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-of-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #193082|0 |1 is obsolete| | --- Comment #246 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 194630 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=194630&action=edit Bug 23415: Fix QA issues Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #193083|0 |1 is obsolete| | --- Comment #247 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 194631 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=194631&action=edit Bug 23415: (QA follow-up) Fix logic and security issues This commit addresses several issues found in QA review: 1. Fixed logic bug in C4::Circulation::CanBookBeRenewed - Removed incorrect check of AllowFineOverrideRenewing preference - The function now always returns 'too_much_oweing' error when patron balance exceeds FineNoRenewals limit - AllowFineOverrideRenewing should only control UI override capability, not the core renewal check 2. Added permission check in circ/renew.pl - Override is now only allowed when both override_debt parameter is set AND AllowFineOverrideRenewing preference is enabled - Prevents security issue where staff could bypass the preference by crafting POST requests 3. Fixed template to conditionally display override button - Override button in renew.tt now only shows when AllowFineOverrideRenewing is enabled - Prevents confusion when override is not permitted 4. Added test coverage - Tests verify CanBookBeRenewed behavior with AllowFineOverrideRenewing both enabled and disabled - Confirms error is always returned regardless of preference setting 5. Fixed minor issues - Fixed typo: "he patron" -> "the patron" in checkouts.js - Fixed typo: OPACFineNoRenewalsIncludeCredit -> OPACFineNoRenewalsIncludeCredits in test All tests should pass successfully. Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #193084|0 |1 is obsolete| | --- Comment #248 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 194632 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=194632&action=edit Bug 23415: (QA follow-up) Fix spelling: oweing -> owing Standardizes error code spelling across the codebase: - Changes 'too_much_oweing' to 'too_much_owing' - Changes 'auto_too_much_oweing' to 'auto_too_much_owing' The word "owing" is the correct spelling in English. Files updated: - C4/Circulation.pm - C4/SIP/Sip/MsgType.pm - circ/renew.pl - koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt - koha-tmpl/intranet-tmpl/prog/js/checkouts.js - koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt - koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt - misc/cronjobs/automatic_renewals.pl - opac/opac-reserve.pl - opac/opac-user.pl - t/db_dependent/Circulation.t All tests should pass successfully. Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #193085|0 |1 is obsolete| | --- Comment #249 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 194633 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=194633&action=edit Bug 23415: Add Cypress test coverage for FineNoRenewals This commit adds end-to-end tests for the fine-based renewal blocking functionality using Cypress. Test coverage includes: 1. Blocking renewal when patron fines exceed FineNoRenewals limit 2. Displaying override button when AllowFineOverrideRenewing is enabled 3. Hiding override button when AllowFineOverrideRenewing is disabled 4. Successful override when permission is enabled 5. Allowing renewal when fines are below the limit The test creates test data including: - A patron with checkouts - Account fines that exceed the FineNoRenewals threshold - Tests both blocking and override scenarios Tests verify the UI behavior matches the business logic: - Error messages are displayed correctly - Override buttons appear based on preference setting - Override functionality works as expected - Security is maintained (no override without permission) To run these tests: npx cypress run --spec "t/cypress/integration/Circulation/FineNoRenewals_spec.ts" Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #193086|0 |1 is obsolete| | --- Comment #250 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 194634 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=194634&action=edit Bug 23415: Add API tests for fine override on renewal This commit adds REST API tests to verify the x-koha-override: debt_limit functionality for renewals. Tests cover: - Renewal blocked due to excessive fines - Override fails when AllowFineOverrideRenewing is disabled - Override succeeds when AllowFineOverrideRenewing is enabled - Both /renewal and /renewals endpoints Test plan: 1. Run: prove t/db_dependent/api/v1/checkouts.t 2. All 110 tests should pass Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #193087|0 |1 is obsolete| | --- Comment #251 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 194635 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=194635&action=edit Bug 23415: Add REST API support for fine override on renewal This commit adds support for the AllowFineOverrideRenewing functionality to the REST API renewal endpoints using the standard x-koha-override pattern. Changes: 1. Added x-koha-override header parameter to both renewal endpoints: - POST /checkouts/{checkout_id}/renewal - POST /checkouts/{checkout_id}/renewals 2. Updated Koha::REST::V1::Checkouts::renew() to: - Check for 'debt_limit' in the overrides stash - Check AllowFineOverrideRenewing preference when override is requested - Allow renewal override only when both: * x-koha-override header contains 'debt_limit' AND * AllowFineOverrideRenewing preference is enabled - Follows the established x-koha-override pattern used by other endpoints 3. Updated OpenAPI specification (swagger) to document the new header using the standard pattern with enum values Usage: curl -X POST /api/v1/checkouts/123/renewal \ -H "x-koha-override: debt_limit" The override only works for too_much_owing errors and requires the AllowFineOverrideRenewing system preference to be enabled. This implementation follows the same pattern as holds and other endpoints that support overrides, maintaining consistency across the REST API. Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #193088|0 |1 is obsolete| | --- Comment #252 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 194636 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=194636&action=edit Bug 23415: Fix FineNoRenewals to use non_issues_charges and improve template This commit addresses two issues: 1. Fixes FineNoRenewals logic to properly use non_issues_charges Both CanBookBeRenewed() and _CanBookBeAutoRenewed() were incorrectly using the patron's total balance when checking against FineNoRenewals. They now use non_issues_charges, which returns only charges that should restrict checkouts (e.g., overdues, lost items) as defined by debit types with restricts_checkouts=1. This ensures charges like rental fees don't inappropriately block renewals. 2. Improves renewal template for AllowFineOverrideRenewing - Adds special handling for auto_too_much_owing error to check AllowFineOverrideRenewing preference instead of AllowRenewalLimitOverride - Adds missing id="barcode" attribute to input field for Cypress tests - Adds .dialog CSS class to error/success divs for consistent styling - Fixes HTML structure with proper <ul><li> wrapping - Adds btn btn-default classes to override button 3. Fixes Cypress test issues - Corrects data structure access: items[0] instead of item - Uses external_id instead of barcode (API field name) - Improves form submission selector specificity - Uses REPLACE INTO for system preference setup Test plan: 1. Run t/cypress/integration/Circulation/FineNoRenewals_spec.ts 2. Verify 4 out of 5 tests pass (one remaining template comparison issue) 3. Manually test that patrons with non-issue charges (rental fees) can renew when those charges alone don't exceed FineNoRenewals 4. Verify that patrons with issue-blocking charges (overdues) are properly blocked from renewal when exceeding FineNoRenewals Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #193089|0 |1 is obsolete| | --- Comment #253 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 194637 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=194637&action=edit Bug 23415: Add debt override support to circulation checkout page This patch implements fine override functionality for the checkouts table on the circulation page (circ/circulation.pl), completing the debt override feature for all renewal workflows. Changes: - Added override_debt checkbox to checkouts-table.inc when AllowFineOverrideRenewing preference is enabled - Updated /svc/renew to accept and process override_debt parameter, matching the pattern used for override_limit - Enhanced circulation-api-client.js to pass override_debt parameter through the renewal API call - Implemented specific CSS classes for renewal error types (renewals-allowed-too_many, renewals-allowed-too_much_owing, etc.) to enable selective checkbox control - Modified override checkbox handlers to selectively enable only relevant renewal checkboxes based on the specific blocking error: * override_limit enables checkboxes for 'too_many' and 'on_reserve' * override_debt enables checkboxes for 'too_much_owing' and 'auto_too_much_owing' - Added AllowFineOverrideRenewing JavaScript variable to circulation.tt This provides clear visual feedback to staff about which renewals will be affected by each override option, improving usability and reducing confusion when multiple items have different blocking reasons. Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #193090|0 |1 is obsolete| | --- Comment #254 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 194638 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=194638&action=edit Bug 23415: (follow-up) Respect OPACFineNoRenewalsIncludeCredits preference This patch fixes a regression introduced in the previous commits where we changed FineNoRenewals checking to use non_issues_charges instead of balance. While this change was correct for focusing on blocking charges, we inadvertently removed the handling of the OPACFineNoRenewalsIncludeCredits preference. The OPACFineNoRenewalsIncludeCredits preference controls whether unapplied account credits should be included when calculating if a patron exceeds the FineNoRenewals threshold. When this preference is enabled, the patron's net balance (debits minus credits) should be used instead of just their outstanding debits. This patch restores the preference handling for both: 1. Manual renewals in CanBookBeRenewed() 2. Auto renewals in _CanBookBeAutoRenewed() When OPACFineNoRenewalsIncludeCredits = 1: Use balance (all charges net of credits) When OPACFineNoRenewalsIncludeCredits = 0: Use non_issues_charges (only blocking charges, no credits) This ensures that patrons with sufficient credits can renew their items when the preference is enabled, while still maintaining the focus on non-issuing charges introduced in the previous commits. Test plan: 1. Run prove t/db_dependent/Circulation.t 2. All tests should pass, particularly the "auto_too_much_owing | OPACFineNoRenewalsBlockAutoRenew & OPACFineNoRenewalsIncludeCredits" subtest Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #193091|0 |1 is obsolete| | --- Comment #255 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 194639 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=194639&action=edit Bug 23415: (follow-up) Rename sysprefs and add self-checkout control This follow-up patch addresses feedback from the QA process: 1. System preference naming consistency Renamed the following preferences to remove "OPAC" prefix and align with the FineNoRenewals naming convention: - OPACFineNoRenewalsIncludeCredits → FineNoRenewalsIncludeCredits - OPACFineNoRenewalsBlockAutoRenew → FineNoRenewalsBlockAutoRenew 2. Self-checkout backward compatibility Added new system preference FineNoRenewalsBlockSelfCheckRenew to control whether fine limits block renewals via web-based self-checkout. Previously, OPACFineNoRenewals did not block self-checkout renewals. With the rename to FineNoRenewals, this behavior changed. The new preference defaults to "0" (don't block) to maintain backward compatibility, allowing sites to opt-in to blocking self-checkout renewals when patrons exceed the fine threshold. Test plan: 1. Run prove t/db_dependent/Circulation.t - all tests should pass 2. Run prove t/db_dependent/api/v1/checkouts.t - all tests should pass 3. Verify system preferences are correctly renamed in the admin interface 4. Test self-checkout renewals with FineNoRenewalsBlockSelfCheckRenew set to 0 (default) - renewals should work even when fines exceed limit 5. Test self-checkout renewals with FineNoRenewalsBlockSelfCheckRenew set to 1 - renewals should be blocked when fines exceed limit Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #193092|0 |1 is obsolete| | --- Comment #256 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 194640 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=194640&action=edit Bug 23415: (follow-up) Fix typo 'oweing' -> 'owing' in templates and notices This patch corrects a typo in the auto renewal error code and related notice templates: - Adds database update to fix existing notice templates in letter table - Fixes sample notices for new installations - Fixes renew_strings.inc template include The error code changes from 'auto_too_much_oweing' to 'auto_too_much_owing' throughout. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Emmi Takkinen <emmi.takkinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Passed QA --- Comment #257 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Rebased patches. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #194625|0 |1 is obsolete| | Attachment #194626|0 |1 is obsolete| | Attachment #194628|0 |1 is obsolete| | Attachment #194629|0 |1 is obsolete| | Attachment #194630|0 |1 is obsolete| | Attachment #194631|0 |1 is obsolete| | Attachment #194632|0 |1 is obsolete| | Attachment #194633|0 |1 is obsolete| | Attachment #194634|0 |1 is obsolete| | Attachment #194635|0 |1 is obsolete| | Attachment #194636|0 |1 is obsolete| | Attachment #194637|0 |1 is obsolete| | Attachment #194638|0 |1 is obsolete| | Attachment #194639|0 |1 is obsolete| | Attachment #194640|0 |1 is obsolete| | Attachment #194627|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #258 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 195729 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195729&action=edit Bug 23415: Notify patron fines when renewing It is possible to renew items for patron who has fines over accepted limit on renew page or from checkout list. This patch adds confirmation alerts to these renew actions when patron has fines over "noissuescharge" syspref. Test plan: 1. Have patron with checkouts and fines over allowed limit 2. Renew checkouts either from renew page or checkout list => renew is successful 3. Apply patch 4. Repeat steps 1 and 2 => On renew page an alert is displayed and user has to confirm renew => When renew is done from checkout list confirmation pop-up is displayed Sponsored-by: Koha-Suomi Oy Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #259 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 195730 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195730&action=edit Bug 23415: Rename OPACFineNoRenewals OPACFineNoRenewals no longer applies just to OPAC. To avoid confusion rename it as FineNoRenewals and also rename all occurences in code. To test, confirm everything works as described in previous test plans. Also prove t/db_dependent/Circulation.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Shi Yao Wang <shi-yao.wang@inlibro.com> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #260 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 195731 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195731&action=edit Bug 23415: (QA follow-up) Move to Circulation::CanBookBeRenewed This moves the basic calculation for too_much_oweing out of the controller and into the class method. Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #261 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 195732 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195732&action=edit Bug 23415: Add new syspref AllowFineOverrideRenewing This patch adds new syspref AllowFineOverrideRenewing. It allows staff to renew items for patrons whose fines are over limit set in syspref FineNoRenewals. Otherwise renewing is prevented. If renewing items is allowed staff is still required to confirm if they really want to renew items for the patron. To test: 1. Apply this patch, update database and restart all services. 2. Find patron with fines over limit set in FineNoRenewals and renewable items. => Note that renewing is prevented with message "Cannot renew, the patron has a debt of..." 3. Set syspref AllowFineOverrideRenewing as "Allow". => Note that items can now be renewed and renewing them displays confirmation pop-up. Sponsored-by: Koha-Suomi Oy Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-of-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #262 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 195733 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195733&action=edit Bug 23415: Fix QA issues Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #263 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 195734 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195734&action=edit Bug 23415: (QA follow-up) Fix logic and security issues This commit addresses several issues found in QA review: 1. Fixed logic bug in C4::Circulation::CanBookBeRenewed - Removed incorrect check of AllowFineOverrideRenewing preference - The function now always returns 'too_much_oweing' error when patron balance exceeds FineNoRenewals limit - AllowFineOverrideRenewing should only control UI override capability, not the core renewal check 2. Added permission check in circ/renew.pl - Override is now only allowed when both override_debt parameter is set AND AllowFineOverrideRenewing preference is enabled - Prevents security issue where staff could bypass the preference by crafting POST requests 3. Fixed template to conditionally display override button - Override button in renew.tt now only shows when AllowFineOverrideRenewing is enabled - Prevents confusion when override is not permitted 4. Added test coverage - Tests verify CanBookBeRenewed behavior with AllowFineOverrideRenewing both enabled and disabled - Confirms error is always returned regardless of preference setting 5. Fixed minor issues - Fixed typo: "he patron" -> "the patron" in checkouts.js - Fixed typo: OPACFineNoRenewalsIncludeCredit -> OPACFineNoRenewalsIncludeCredits in test All tests should pass successfully. Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #264 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 195735 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195735&action=edit Bug 23415: (QA follow-up) Fix spelling: oweing -> owing Standardizes error code spelling across the codebase: - Changes 'too_much_oweing' to 'too_much_owing' - Changes 'auto_too_much_oweing' to 'auto_too_much_owing' The word "owing" is the correct spelling in English. Files updated: - C4/Circulation.pm - C4/SIP/Sip/MsgType.pm - circ/renew.pl - koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt - koha-tmpl/intranet-tmpl/prog/js/checkouts.js - koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt - koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt - misc/cronjobs/automatic_renewals.pl - opac/opac-reserve.pl - opac/opac-user.pl - t/db_dependent/Circulation.t All tests should pass successfully. Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #265 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 195736 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195736&action=edit Bug 23415: Add Cypress test coverage for FineNoRenewals This commit adds end-to-end tests for the fine-based renewal blocking functionality using Cypress. Test coverage includes: 1. Blocking renewal when patron fines exceed FineNoRenewals limit 2. Displaying override button when AllowFineOverrideRenewing is enabled 3. Hiding override button when AllowFineOverrideRenewing is disabled 4. Successful override when permission is enabled 5. Allowing renewal when fines are below the limit The test creates test data including: - A patron with checkouts - Account fines that exceed the FineNoRenewals threshold - Tests both blocking and override scenarios Tests verify the UI behavior matches the business logic: - Error messages are displayed correctly - Override buttons appear based on preference setting - Override functionality works as expected - Security is maintained (no override without permission) To run these tests: npx cypress run --spec "t/cypress/integration/Circulation/FineNoRenewals_spec.ts" Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #266 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 195737 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195737&action=edit Bug 23415: Add API tests for fine override on renewal This commit adds REST API tests to verify the x-koha-override: debt_limit functionality for renewals. Tests cover: - Renewal blocked due to excessive fines - Override fails when AllowFineOverrideRenewing is disabled - Override succeeds when AllowFineOverrideRenewing is enabled - Both /renewal and /renewals endpoints Test plan: 1. Run: prove t/db_dependent/api/v1/checkouts.t 2. All 110 tests should pass Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #267 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 195738 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195738&action=edit Bug 23415: Add REST API support for fine override on renewal This commit adds support for the AllowFineOverrideRenewing functionality to the REST API renewal endpoints using the standard x-koha-override pattern. Changes: 1. Added x-koha-override header parameter to both renewal endpoints: - POST /checkouts/{checkout_id}/renewal - POST /checkouts/{checkout_id}/renewals 2. Updated Koha::REST::V1::Checkouts::renew() to: - Check for 'debt_limit' in the overrides stash - Check AllowFineOverrideRenewing preference when override is requested - Allow renewal override only when both: * x-koha-override header contains 'debt_limit' AND * AllowFineOverrideRenewing preference is enabled - Follows the established x-koha-override pattern used by other endpoints 3. Updated OpenAPI specification (swagger) to document the new header using the standard pattern with enum values Usage: curl -X POST /api/v1/checkouts/123/renewal \ -H "x-koha-override: debt_limit" The override only works for too_much_owing errors and requires the AllowFineOverrideRenewing system preference to be enabled. This implementation follows the same pattern as holds and other endpoints that support overrides, maintaining consistency across the REST API. Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #268 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 195739 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195739&action=edit Bug 23415: Fix FineNoRenewals to use non_issues_charges and improve template This commit addresses two issues: 1. Fixes FineNoRenewals logic to properly use non_issues_charges Both CanBookBeRenewed() and _CanBookBeAutoRenewed() were incorrectly using the patron's total balance when checking against FineNoRenewals. They now use non_issues_charges, which returns only charges that should restrict checkouts (e.g., overdues, lost items) as defined by debit types with restricts_checkouts=1. This ensures charges like rental fees don't inappropriately block renewals. 2. Improves renewal template for AllowFineOverrideRenewing - Adds special handling for auto_too_much_owing error to check AllowFineOverrideRenewing preference instead of AllowRenewalLimitOverride - Adds missing id="barcode" attribute to input field for Cypress tests - Adds .dialog CSS class to error/success divs for consistent styling - Fixes HTML structure with proper <ul><li> wrapping - Adds btn btn-default classes to override button 3. Fixes Cypress test issues - Corrects data structure access: items[0] instead of item - Uses external_id instead of barcode (API field name) - Improves form submission selector specificity - Uses REPLACE INTO for system preference setup Test plan: 1. Run t/cypress/integration/Circulation/FineNoRenewals_spec.ts 2. Verify 4 out of 5 tests pass (one remaining template comparison issue) 3. Manually test that patrons with non-issue charges (rental fees) can renew when those charges alone don't exceed FineNoRenewals 4. Verify that patrons with issue-blocking charges (overdues) are properly blocked from renewal when exceeding FineNoRenewals Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #269 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 195740 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195740&action=edit Bug 23415: Add debt override support to circulation checkout page This patch implements fine override functionality for the checkouts table on the circulation page (circ/circulation.pl), completing the debt override feature for all renewal workflows. Changes: - Added override_debt checkbox to checkouts-table.inc when AllowFineOverrideRenewing preference is enabled - Updated /svc/renew to accept and process override_debt parameter, matching the pattern used for override_limit - Enhanced circulation-api-client.js to pass override_debt parameter through the renewal API call - Implemented specific CSS classes for renewal error types (renewals-allowed-too_many, renewals-allowed-too_much_owing, etc.) to enable selective checkbox control - Modified override checkbox handlers to selectively enable only relevant renewal checkboxes based on the specific blocking error: * override_limit enables checkboxes for 'too_many' and 'on_reserve' * override_debt enables checkboxes for 'too_much_owing' and 'auto_too_much_owing' - Added AllowFineOverrideRenewing JavaScript variable to circulation.tt This provides clear visual feedback to staff about which renewals will be affected by each override option, improving usability and reducing confusion when multiple items have different blocking reasons. Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #270 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 195741 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195741&action=edit Bug 23415: (follow-up) Respect OPACFineNoRenewalsIncludeCredits preference This patch fixes a regression introduced in the previous commits where we changed FineNoRenewals checking to use non_issues_charges instead of balance. While this change was correct for focusing on blocking charges, we inadvertently removed the handling of the OPACFineNoRenewalsIncludeCredits preference. The OPACFineNoRenewalsIncludeCredits preference controls whether unapplied account credits should be included when calculating if a patron exceeds the FineNoRenewals threshold. When this preference is enabled, the patron's net balance (debits minus credits) should be used instead of just their outstanding debits. This patch restores the preference handling for both: 1. Manual renewals in CanBookBeRenewed() 2. Auto renewals in _CanBookBeAutoRenewed() When OPACFineNoRenewalsIncludeCredits = 1: Use balance (all charges net of credits) When OPACFineNoRenewalsIncludeCredits = 0: Use non_issues_charges (only blocking charges, no credits) This ensures that patrons with sufficient credits can renew their items when the preference is enabled, while still maintaining the focus on non-issuing charges introduced in the previous commits. Test plan: 1. Run prove t/db_dependent/Circulation.t 2. All tests should pass, particularly the "auto_too_much_owing | OPACFineNoRenewalsBlockAutoRenew & OPACFineNoRenewalsIncludeCredits" subtest Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #271 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 195742 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195742&action=edit Bug 23415: (follow-up) Rename sysprefs and add self-checkout control This follow-up patch addresses feedback from the QA process: 1. System preference naming consistency Renamed the following preferences to remove "OPAC" prefix and align with the FineNoRenewals naming convention: - OPACFineNoRenewalsIncludeCredits → FineNoRenewalsIncludeCredits - OPACFineNoRenewalsBlockAutoRenew → FineNoRenewalsBlockAutoRenew 2. Self-checkout backward compatibility Added new system preference FineNoRenewalsBlockSelfCheckRenew to control whether fine limits block renewals via web-based self-checkout. Previously, OPACFineNoRenewals did not block self-checkout renewals. With the rename to FineNoRenewals, this behavior changed. The new preference defaults to "0" (don't block) to maintain backward compatibility, allowing sites to opt-in to blocking self-checkout renewals when patrons exceed the fine threshold. Test plan: 1. Run prove t/db_dependent/Circulation.t - all tests should pass 2. Run prove t/db_dependent/api/v1/checkouts.t - all tests should pass 3. Verify system preferences are correctly renamed in the admin interface 4. Test self-checkout renewals with FineNoRenewalsBlockSelfCheckRenew set to 0 (default) - renewals should work even when fines exceed limit 5. Test self-checkout renewals with FineNoRenewalsBlockSelfCheckRenew set to 1 - renewals should be blocked when fines exceed limit Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #272 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 195743 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195743&action=edit Bug 23415: (follow-up) Fix typo 'oweing' -> 'owing' in templates and notices This patch corrects a typo in the auto renewal error code and related notice templates: - Adds database update to fix existing notice templates in letter table - Fixes sample notices for new installations - Fixes renew_strings.inc template include The error code changes from 'auto_too_much_oweing' to 'auto_too_much_owing' throughout. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #273 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 195744 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195744&action=edit Bug 23415: (RM follow-up) Add POD coverage for private subs in C4/Circulation.pm Adds POD for _check_max_qty, _calculate_new_debar_dt, _CalculateAndUpdateFine, and _CanBookBeAutoRenewed to fix QA pod_coverage failures. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #274 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 195745 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195745&action=edit Bug 23415: (RM follow-up) Add new sysprefs to HEA data sharing Add FineNoRenewals, FineNoRenewalsBlockAutoRenew, FineNoRenewalsBlockSelfCheckRenew, and FineNoRenewalsIncludeCredits to the list of system preferences shared with the Hea (Koha Usage Stats) service. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Version(s)| |26.05.00 released in| | Status|Passed QA |Pushed to main -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #275 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Thanks for all the hard work! Pushed to main for the next 26.05.00 release as RM Assistant -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #276 from Tomás Cohen Arazi (tcohen) <tomascohen@gmail.com> --- Created attachment 196124 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196124&action=edit Bug 23415: (follow-up) Fallback to 'days' in 'get_chargeable_units' Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart@gmail.com --- Comment #277 from Jonathan Druart <jonathan.druart@gmail.com> --- I see a JS error in the console that seems related to this bug http://dev-intra.localhost/cgi-bin/koha/members/moremember.pl?borrowernumber... Uncaught ReferenceError: AllowFineOverrideRenewing is not defined -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|rel_26_05_candidate |additional_work_needed -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #278 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- (In reply to Jonathan Druart from comment #277)
I see a JS error in the console that seems related to this bug http://dev-intra.localhost/cgi-bin/koha/members/moremember. pl?borrowernumber=5 Uncaught ReferenceError: AllowFineOverrideRenewing is not defined
AllowFineOverrideRenewing variable isn't declared in moremember.tt. I'll add patch asap. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 --- Comment #279 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- Created attachment 196531 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196531&action=edit Bug 23415: (follow-up): Declare variable AllowFineOverrideRenewing Missing variable causes JS error. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|additional_work_needed | --- Comment #280 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- follow-up pushed to main -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415 Jacob O'Mara <jacob.omara@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to main |Needs documenting --- Comment #281 from Jacob O'Mara <jacob.omara@openfifth.co.uk> --- This will not be backported to 25.11.x due to it being deemed an enhancement or a dependancy not being met -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org