Fix: le prix d'un produit ne doit pas avoir la valeur NULL
This commit is contained in:
parent
b2ebd42ac6
commit
4fa364ec1c
@ -209,8 +209,8 @@ class Product extends CommonObject
|
|||||||
if ($this->libelle) $sql.= "'".addslashes($this->libelle)."', ";
|
if ($this->libelle) $sql.= "'".addslashes($this->libelle)."', ";
|
||||||
$sql.= $user->id.",";
|
$sql.= $user->id.",";
|
||||||
$sql.= " ".$this->type.",";
|
$sql.= " ".$this->type.",";
|
||||||
$sql.= ($price_ht?price2num($price_ht):"null").",";
|
$sql.= $price_ht.",";
|
||||||
$sql.= ($price_ttc?price2num($price_ttc):"null").",";
|
$sql.= $price_ttc.",";
|
||||||
$sql.= "'".$this->price_base_type."',";
|
$sql.= "'".$this->price_base_type."',";
|
||||||
$sql.= "'".$this->canvas."')";
|
$sql.= "'".$this->canvas."')";
|
||||||
|
|
||||||
|
|||||||
@ -1165,4 +1165,8 @@ ALTER TABLE llx_societe_remise_except ADD CONSTRAINT fk_societe_remise_fk_factur
|
|||||||
|
|
||||||
DELETE FROM llx_const WHERE name = 'PRODUIT_CHANGE_PROD_DESC';
|
DELETE FROM llx_const WHERE name = 'PRODUIT_CHANGE_PROD_DESC';
|
||||||
|
|
||||||
ALTER TABLE llx_commande_fournisseurdet MODIFY fk_product integer;
|
ALTER TABLE llx_commande_fournisseurdet MODIFY fk_product integer;
|
||||||
|
|
||||||
|
-- Le prix d'un produit ne doit pas avoir la valeur NULL
|
||||||
|
UPDATE llx_product SET price = 0 WHERE price is NULL;
|
||||||
|
UPDATE llx_product SET price_ttc = 0 WHERE price_ttc is NULL;
|
||||||
Loading…
Reference in New Issue
Block a user