Bug 22713: Remove unecessary $replacementprice var
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 6 May 2019 16:55:32 +0000 (11:55 -0500)
committerNick Clemens <nick@bywatersolutions.com>
Tue, 14 May 2019 19:30:54 +0000 (19:30 +0000)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

acqui/addorderiso2709.pl

index 98e5435..8e0f9ff 100755 (executable)
@@ -259,7 +259,6 @@ if ($op eq ""){
                     );
 
                     my $price = $infos->{price};
-                    my $replacementprice = $infos->{replacementprice};
                     if ($price){
                         # in France, the cents separator is the , but sometimes, ppl use a .
                         # in this case, the price will be x100 when unformatted ! Replace the . by a , to get a proper price calculation
@@ -281,7 +280,7 @@ if ($op eq ""){
                     } else {
                         $orderinfo{listprice} = 0;
                     }
-                    $orderinfo{replacementprice} = $replacementprice || 0;
+                    $orderinfo{replacementprice} = $infos->{replacementprice} || 0;
 
                     # remove uncertainprice flag if we have found a price in the MARC record
                     $orderinfo{uncertainprice} = 0 if $orderinfo{listprice};