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:
parent
9b13e06275
commit
aa2ecb58d5
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue