From aa222f566b2952b9fe423cea10d93a426e36fe5c Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 15 Apr 2021 15:28:58 +0000 Subject: [PATCH] Bug 25508: (QA follow-up) Add interface These patches are making the call for an amount match the call for a specific line, we should also match the passing of interface to ensure the correct pref is checked Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart (cherry picked from commit 97c168704b576bf59e4778417f066c1097d3014d) Signed-off-by: Fridolin Somers (cherry picked from commit 808fa2a3e2f7aeeb10edc6e5838b5281afdf5da1) Signed-off-by: Andrew Fuerste-Henry --- Koha/Account.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Account.pm b/Koha/Account.pm index f2681665de..e41380c291 100644 --- a/Koha/Account.pm +++ b/Koha/Account.pm @@ -204,7 +204,7 @@ sub pay { # in order that we can potentially renew it, do so. my $amt = $old_amountoutstanding - $amount_to_pay; if ( $fine->renewable ) { - my $outcome = $fine->renew_item; + my $outcome = $fine->renew_item({ interface => $interface }); push @{$renew_outcomes}, $outcome if $outcome; } -- 2.39.5