Bug 19165 - When adding from a staged file order discounts are not passed into C4::Acquisitions::populate_order_with_prices

Signed-off-by: Your Name <david.bourgault@inlibro.com>
This commit is contained in:
Christophe Croullebois 2017-08-23 07:57:30 +00:00 committed by Katrin Fischer
parent b49ec7a57d
commit 61cfb6e241
1 changed files with 1 additions and 0 deletions

View File

@ -221,6 +221,7 @@ if ($op eq ""){
$price = Koha::Number::Price->new($price)->unformat;
$orderinfo{tax_rate} = $bookseller->{tax_rate};
my $c = $c_discount ? $c_discount : $bookseller->{discount} / 100;
$orderinfo{discount} = $c;
if ( $bookseller->{listincgst} ) {
if ( $c_discount ) {
$orderinfo{ecost} = $price;