From bad8692e8e95ea30af94d26dbd78728b1b03bbf1 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 10 Nov 2022 20:23:17 +0000 Subject: [PATCH] Bug 32171: Store after populating order This updates the call to store after populating the order I put this on it's own bug just for sake of dependency, in case it is needed seperate from 32166 for backports To test: 1 - Apply and test with bug 32166 --- acqui/addorderiso2709.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/acqui/addorderiso2709.pl b/acqui/addorderiso2709.pl index eb8dc68e72..11e54ef644 100755 --- a/acqui/addorderiso2709.pl +++ b/acqui/addorderiso2709.pl @@ -289,9 +289,10 @@ if ($op eq ""){ # remove uncertainprice flag if we have found a price in the MARC record $orderinfo{uncertainprice} = 0 if $orderinfo{listprice}; - my $order = Koha::Acquisition::Order->new( \%orderinfo )->store; + my $order = Koha::Acquisition::Order->new( \%orderinfo ); $order->populate_with_prices_for_ordering(); $order->populate_with_prices_for_receiving(); + $oder->store; $order->add_item( $_ ) for @{ $budget_hash->{$budget_id}->{itemnumbers} }; } } -- 2.30.2