From a1c9723f4bf07e9dc6124e7c2f98ee27d375fa2f Mon Sep 17 00:00:00 2001
From: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Date: Wed, 25 Nov 2020 17:17:17 +0000
Subject: [PATCH] Bug 27079: (QA follow-up) Round both sides for clarity

---
 C4/Overdues.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/C4/Overdues.pm b/C4/Overdues.pm
index 607af71f5c..d484c67b0f 100644
--- a/C4/Overdues.pm
+++ b/C4/Overdues.pm
@@ -574,7 +574,7 @@ sub UpdateFine {
     }
 
     if ( $accountline ) {
-        if ( $accountline->amount != Koha::Number::Price->new($amount)->round ) {
+        if ( Koha::Number::Price->new($accountline->amount)->round != Koha::Number::Price->new($amount)->round ) {
             $accountline->adjust(
                 {
                     amount    => $amount,
-- 
2.20.1