From 271b48bfd3f24686c5cae31d094d8543d8e53981 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 27 Sep 2013 16:42:44 +0200 Subject: [PATCH] Bug 7180: (followup) fix case where discount was divided by 100 twice. Signed-off-by: Kyle M Hall Signed-off-by: Katrin Fischer Signed-off-by: Galen Charlton --- acqui/addorderiso2709.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acqui/addorderiso2709.pl b/acqui/addorderiso2709.pl index 5b4b6c682b..54c4414aba 100755 --- a/acqui/addorderiso2709.pl +++ b/acqui/addorderiso2709.pl @@ -228,7 +228,7 @@ if ($op eq ""){ $price =~ s/\./,/ if C4::Context->preference("CurrencyFormat") eq "FR"; $price = $num->unformat_number($price); $orderinfo{gstrate} = $bookseller->{gstrate}; - my $c = $c_discount ? $c_discount / 100 : $bookseller->{discount} / 100; + my $c = $c_discount ? $c_discount : $bookseller->{discount} / 100; if ( $bookseller->{listincgst} ) { if ( $c_discount ) { $orderinfo{ecost} = $price; -- 2.39.5