This commit is contained in:
Regis Houssin 2007-09-29 20:31:41 +00:00
parent f73db03e53
commit 028d875bbb

View File

@ -881,6 +881,9 @@ class Product
{ {
$this->barcode_type = $conf->global->PRODUIT_DEFAULT_BARCODE_TYPE; $this->barcode_type = $conf->global->PRODUIT_DEFAULT_BARCODE_TYPE;
} }
if ($this->barcode_type > 0)
{
$sql = "SELECT code, libelle, coder"; $sql = "SELECT code, libelle, coder";
$sql.= " FROM ".MAIN_DB_PREFIX."c_barcode_type"; $sql.= " FROM ".MAIN_DB_PREFIX."c_barcode_type";
$sql.= " WHERE rowid = ".$this->barcode_type; $sql.= " WHERE rowid = ".$this->barcode_type;
@ -898,6 +901,7 @@ class Product
return -1; return -1;
} }
} }
}
// multiprix // multiprix
if ($conf->global->PRODUIT_MULTIPRICES) if ($conf->global->PRODUIT_MULTIPRICES)