Bug 7180: (followup) fix case where discount was divided by 100 twice.
authorJonathan Druart <jonathan.druart@biblibre.com>
Fri, 27 Sep 2013 14:42:44 +0000 (16:42 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Sun, 4 May 2014 19:54:13 +0000 (19:54 +0000)
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
acqui/addorderiso2709.pl

index 5b4b6c6..54c4414 100755 (executable)
@@ -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;