Bug 15503 - Populate the order prices

Signed-off-by: Benjamin Daeuber <bdaeuber@cityoffargo.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Kyle M Hall 2017-01-24 08:15:35 -08:00
parent 9b13e06275
commit aa2ecb58d5
1 changed files with 12 additions and 0 deletions

View File

@ -287,6 +287,18 @@ if ($op eq ""){
# remove uncertainprice flag if we have found a price in the MARC record
$orderinfo{uncertainprice} = 0 if $orderinfo{listprice};
%orderinfo = %{
C4::Acquisition::populate_order_with_prices(
{
order => \%orderinfo,
booksellerid => $booksellerid,
ordering => 1,
receiving => 1,
}
)
};
my $order = Koha::Acquisition::Order->new( \%orderinfo )->insert;
}
}