Merge pull request #3800 from olsesacl/develop

error this.price > 0 always false
This commit is contained in:
Laurent Destailleur 2015-10-26 22:40:26 +01:00
commit 4f04775b41

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':''); ?>';