Bugzilla – Attachment 103253 Details for
Bug 25127
Fines with an amountoutstanding of 0 can be created due to maxFine but cannot be forgiven
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25127: Compare with 2 decimals
Bug-25127-Compare-with-2-decimals.patch (text/plain), 866 bytes, created by
Jonathan Druart
on 2020-04-20 10:03:36 UTC
(
hide
)
Description:
Bug 25127: Compare with 2 decimals
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-04-20 10:03:36 UTC
Size:
866 bytes
patch
obsolete
>From 349908509e140e30121a9315f032bded9a077b53 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 20 Apr 2020 12:02:20 +0200 >Subject: [PATCH] Bug 25127: Compare with 2 decimals > >--- > C4/Overdues.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Overdues.pm b/C4/Overdues.pm >index b6773c2cf1..4acec4f0b1 100644 >--- a/C4/Overdues.pm >+++ b/C4/Overdues.pm >@@ -559,7 +559,7 @@ sub UpdateFine { > > if ( my $maxfine = C4::Context->preference('MaxFine') ) { > my $maxIncrease = $maxfine - $total_amount_other; >- return if $maxIncrease <= 0.00; >+ return if sprintf("%.2f", $maxIncrease) <= 0.00; > if ($accountline) { > if ( ( $amount - $accountline->amount ) > $maxIncrease ) { > my $new_amount = $accountline->amount + $maxIncrease; >-- >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 25127
:
102826
|
103235
|
103249
|
103253
|
103276
|
103325
|
103326
|
103327
|
103430
|
103431
|
103432
|
104078
|
104079
|
104080