Bugzilla – Attachment 104733 Details for
Bug 25417
Backdating returns and forgiving fines causes and internal server error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25417: (QA follow-up) Restore 'fixing' of fines
Bug-25417-QA-follow-up-Restore-fixing-of-fines.patch (text/plain), 1.15 KB, created by
Martin Renvoize (ashimema)
on 2020-05-12 08:25:59 UTC
(
hide
)
Description:
Bug 25417: (QA follow-up) Restore 'fixing' of fines
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2020-05-12 08:25:59 UTC
Size:
1.15 KB
patch
obsolete
>From 8f56ba335ac4b3ddd3d87d896e0d89f15827272b Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Mon, 11 May 2020 21:14:24 +0100 >Subject: [PATCH] Bug 25417: (QA follow-up) Restore 'fixing' of fines > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > C4/Circulation.pm | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index 99e1423e51..5f48cfc288 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -2430,11 +2430,9 @@ sub _FixOverduesOnReturn { > return 0 unless $accountlines->count; # no warning, there's just nothing to fix > > my $accountline = $accountlines->next; >- if ($exemptfine) { >- my $amountoutstanding = $accountline->amountoutstanding; >- >- return if $amountoutstanding <= 0; > >+ my $amountoutstanding = $accountline->amountoutstanding; >+ if ($exemptfine && ($amountoutstanding != 0)) { > my $account = Koha::Account->new({patron_id => $borrowernumber}); > my $credit = $account->add_credit( > { >-- >2.20.1
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 25417
:
104535
|
104536
|
104575
|
104576
|
104578
|
104579
|
104580
|
104644
|
104645
|
104715
|
104716
|
104730
|
104731
|
104732
|
104733
|
104734
|
104735
|
104736
|
104737
|
104738
|
104739
|
104749
|
104750
|
104751
|
104752
|
104753
|
104754