Bug 19165 - When adding from a staged file order discounts are not passed into C4...
authorChristophe Croullebois <christophe.croullebois@biblibre.com>
Wed, 23 Aug 2017 07:57:30 +0000 (07:57 +0000)
committerKatrin Fischer <katrin.fischer.83@web.de>
Sat, 14 Oct 2017 12:49:02 +0000 (14:49 +0200)
Signed-off-by: Your Name <david.bourgault@inlibro.com>

acqui/addorderiso2709.pl

index 8175379..5c8739b 100755 (executable)
@@ -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;