Bugzilla – Attachment 119236 Details for
Bug 27927
longoverdue cronjob renews items before marking lost when both RenewAccruingItemWhenPaid and WhenLostForgiveFine are enabled
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27927: Prevent renewal on lost forgive
Bug-27927-Prevent-renewal-on-lost-forgive.patch (text/plain), 1.38 KB, created by
Andrew Fuerste-Henry
on 2021-04-06 16:15:01 UTC
(
hide
)
Description:
Bug 27927: Prevent renewal on lost forgive
Filename:
MIME Type:
Creator:
Andrew Fuerste-Henry
Created:
2021-04-06 16:15:01 UTC
Size:
1.38 KB
patch
obsolete
>From 19ddb86690c4be3e976e3cf1d00b55a11c96fda5 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Wed, 24 Mar 2021 17:13:57 +0000 >Subject: [PATCH] Bug 27927: Prevent renewal on lost forgive > >The `RenewAccruingItemWhenPaid` preference should only renew upon >payment (and writeoff) and not upon automatic forgival triggered by >`WhenLostForgiveFine`. > >Test plan >1/ Enable `WhenLostForgiveFine` and `RenewAccruingItemWhenPaid` >2/ Checkout an item and backdate it's due date >3/ Run longeroverdue.pl to mark the item as lost and create the fine >4/ Confirm that the item is not renewed as part of the process >5/ Signoff > >Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> >--- > Koha/Account/Line.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/Koha/Account/Line.pm b/Koha/Account/Line.pm >index 185c753772..22aaa4e00f 100644 >--- a/Koha/Account/Line.pm >+++ b/Koha/Account/Line.pm >@@ -596,8 +596,8 @@ sub apply { > > # Attempt to renew the item associated with this debit if > # appropriate >- if ($debit->renewable) { >- $debit->renew_item($params->{interface}); >+ if ( $self->credit_type_code ne 'FORGIVEN' && $debit->renewable ) { >+ $debit->renew_item( { interface => $params->{interface} } ); > } > > # Same logic exists in Koha::Account::pay >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 27927
:
118766
|
118781
|
119193
|
119194
|
119235
|
119236
|
119676
|
119677