From 808fa2a3e2f7aeeb10edc6e5838b5281afdf5da1 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 --- Koha/Account.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Account.pm b/Koha/Account.pm index 55ee594ff8..3916fa76be 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