From f4694385279bbebf9aa77c020cc26c504456b916 Mon Sep 17 00:00:00 2001 From: Regis Houssin <regis@dolibarr.fr> Date: Sun, 16 Dec 2007 11:38:08 +0000 Subject: [PATCH] Fix: le prix d'un produit ne doit pas avoir la valeur NULL --- htdocs/product.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/product.class.php b/htdocs/product.class.php index 18a294b9d56..4c2ac92f793 100644 --- a/htdocs/product.class.php +++ b/htdocs/product.class.php @@ -209,8 +209,8 @@ class Product extends CommonObject if ($this->libelle) $sql.= "'".addslashes($this->libelle)."', "; $sql.= $user->id.","; $sql.= " ".$this->type.","; - $sql.= $price_ht.","; - $sql.= $price_ttc.","; + $sql.= price2num($price_ht).","; + $sql.= price2num($price_ttc).","; $sql.= "'".$this->price_base_type."',"; $sql.= "'".$this->canvas."')"; -- GitLab