From e0e80d7cc9525430bc8ab2b666bef612d5602038 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 27 Sep 2013 16:42:44 +0200 Subject: [PATCH] Bug 7180: FIX: discount was divided by 100 twice. Signed-off-by: Kyle M Hall --- acqui/addorderiso2709.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acqui/addorderiso2709.pl b/acqui/addorderiso2709.pl index 5b4b6c6..54c4414 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; -- 1.7.10.4