Fix: error this.price > 0

if no parse this.price when compare this.price and 0 always false
This commit is contained in:
Sergio Sanchis Climent 2015-10-26 11:33:43 +01:00
parent 132bc610b6
commit 4fd0086862

View File

@ -521,6 +521,7 @@ jQuery(document).ready(function() {
if (this.id != 'pmpprice')
{
i++;
this.price = parseFloat(this.price);//fix this.price >0
// If margin is calculated on best supplier price, we set it by defaut (but only if value is not 0)
var defaultbuyprice = '<?php echo ((isset($conf->global->MARGIN_TYPE) && $conf->global->MARGIN_TYPE == '1')?'bestsupplierprice':''); ?>';