Bug 22713: Remove unecessary $replacementprice var

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2019-05-06 11:55:32 -05:00 committed by Nick Clemens
parent 57b027734e
commit 3b877cc240
1 changed files with 1 additions and 2 deletions

View File

@ -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};