From f8483e335adf408c480fdb9509453aa4b16286e5 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 2 Sep 2025 12:29:02 +0200 Subject: [PATCH] Bug 40680: Fix acqui scripts Attempt to call undefined import method with arguments (get_active) via package Koha::Acquisition::Currencies (Perhaps you forgot to load the package?) at acqui/addorder.pl line 133. --- acqui/addorder.pl | 2 +- acqui/invoice.pl | 2 +- acqui/neworderempty.pl | 2 +- acqui/orderreceive.pl | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/acqui/addorder.pl b/acqui/addorder.pl index ef759925c59..d6075b34d46 100755 --- a/acqui/addorder.pl +++ b/acqui/addorder.pl @@ -130,7 +130,7 @@ use C4::Log qw( logaction ); use C4::Output qw( output_html_with_http_headers ); use C4::Suggestions qw( ModSuggestion ); use Koha::Acquisition::Baskets; -use Koha::Acquisition::Currencies qw( get_active ); +use Koha::Acquisition::Currencies; use Koha::Acquisition::Orders; use Koha::AdditionalFields; use Koha::DateUtils qw( dt_from_string ); diff --git a/acqui/invoice.pl b/acqui/invoice.pl index d38a83d217b..c376b42903d 100755 --- a/acqui/invoice.pl +++ b/acqui/invoice.pl @@ -38,7 +38,7 @@ use JSON qw( encode_json ); use C4::Log qw(logaction); use Koha::Acquisition::Booksellers; -use Koha::Acquisition::Currencies qw( get_active ); +use Koha::Acquisition::Currencies; use Koha::AdditionalFields; use Koha::DateUtils qw( output_pref ); use Koha::Misc::Files; diff --git a/acqui/neworderempty.pl b/acqui/neworderempty.pl index b68ace84742..f7ed137a660 100755 --- a/acqui/neworderempty.pl +++ b/acqui/neworderempty.pl @@ -89,7 +89,7 @@ use C4::Search qw( FindDuplicate ); use C4::ImportBatch qw( SetImportRecordStatus SetMatchedBiblionumber GetImportRecordMarc ); use Koha::Acquisition::Booksellers; -use Koha::Acquisition::Currencies qw( get_active ); +use Koha::Acquisition::Currencies; use Koha::Biblios; use Koha::BiblioFrameworks; use Koha::DateUtils qw( dt_from_string ); diff --git a/acqui/orderreceive.pl b/acqui/orderreceive.pl index 06564c730a3..d65236f8818 100755 --- a/acqui/orderreceive.pl +++ b/acqui/orderreceive.pl @@ -70,7 +70,7 @@ use C4::Biblio qw( GetMarcStructure ); use C4::Suggestions qw( GetSuggestion GetSuggestionInfoFromBiblionumber GetSuggestionInfo ); use Koha::Acquisition::Booksellers; -use Koha::Acquisition::Currencies qw( get_active ); +use Koha::Acquisition::Currencies; use Koha::Acquisition::Orders; use Koha::DateUtils qw( dt_from_string ); use Koha::ItemTypes; -- 2.34.1