Skip to content

Commit

Permalink
fix pseudo price view in qpr, fixes coreshop#1488
Browse files Browse the repository at this point in the history
  • Loading branch information
solverat committed Sep 17, 2020
1 parent 4c7cef3 commit 20239cc
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,9 @@ coreshop.product_quantity_price_rules.ranges = Class.create(coreshop.product_qua
}

if (value === undefined) {
return coreshop.util.format.currency('', 0);
return '0';
} else {

return coreshop.util.format.currency('', parseFloat(value) * pimcore.globalmanager.get('coreshop.currency.decimal_factor'));
return coreshop.util.format.number(parseFloat(value * pimcore.globalmanager.get('coreshop.currency.decimal_factor')));
}
}
}]
Expand Down

0 comments on commit 20239cc

Please sign in to comment.