From bc6fc86ca08f75c9f77cf87d09a1bff747422e16 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 d8aa9e781fe..1a52b505116 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 369f563f3de..9eebfc9455f 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 c4db7f4044b..efbec39ac0a 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 0cb3f67452f..ebfd813ba90 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