From ef2015bf9b45e3b1f513fb4e278968ad060bdc39 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 13 Feb 2024 15:04:53 -0500 Subject: [PATCH] Bug 36088: Remove useless code form opac-account-pay.pl The script opac-account-pay.pl sums the selected accountlines, formats the amount, pulls the currently active currency, and does nothing with any of this data. Test Plan: 1) Apply this patch 2) Restart all the things! 3) Note there is no change in behavior Signed-off-by: David Nind Signed-off-by: Pedro Amorim PA amended title (missing 'Bug ####:' Signed-off-by: Katrin Fischer (cherry picked from commit dd7ac62d3f184b7c76296389a16192a45fdadae0) Signed-off-by: Fridolin Somers (cherry picked from commit ebf8d687cc78da22c6bbb5b2bdf49845e3c2f089) Signed-off-by: Lucas Gass --- opac/opac-account-pay.pl | 9 --------- 1 file changed, 9 deletions(-) diff --git a/opac/opac-account-pay.pl b/opac/opac-account-pay.pl index 30be841dfc..f5cc3d817a 100755 --- a/opac/opac-account-pay.pl +++ b/opac/opac-account-pay.pl @@ -54,15 +54,6 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user( } ); -my $amount_to_pay = - Koha::Database->new()->schema()->resultset('Accountline')->search( { accountlines_id => { -in => \@accountlines } } ) - ->get_column('amountoutstanding')->sum(); -$amount_to_pay = sprintf( "%.2f", $amount_to_pay ); - -my $active_currency = Koha::Acquisition::Currencies->get_active; - -my $error = 0; - Koha::Plugins::Handler->run( { class => $payment_method, -- 2.39.5