la constante PRODUIT_CHANGE_PROD_DESC n'a plus d'intérêt si on rajoute la description
produit par défaut ???
This commit is contained in:
parent
41f996f80d
commit
02b9508f07
@ -403,6 +403,7 @@ if (($_POST['action'] == 'addligne' || $_POST['action'] == 'addligne_predef') &&
|
|||||||
{
|
{
|
||||||
$prod = new Product($db, $_POST['idprod']);
|
$prod = new Product($db, $_POST['idprod']);
|
||||||
$prod->fetch($_POST['idprod']);
|
$prod->fetch($_POST['idprod']);
|
||||||
|
|
||||||
// multiprix
|
// multiprix
|
||||||
if ($conf->global->PRODUIT_MULTIPRICES == 1)
|
if ($conf->global->PRODUIT_MULTIPRICES == 1)
|
||||||
{
|
{
|
||||||
@ -412,9 +413,21 @@ if (($_POST['action'] == 'addligne' || $_POST['action'] == 'addligne_predef') &&
|
|||||||
{
|
{
|
||||||
$pu=$prod->price;
|
$pu=$prod->price;
|
||||||
}
|
}
|
||||||
|
|
||||||
$desc=$_POST['desc'];
|
$desc=$_POST['desc'];
|
||||||
if (! $desc) $desc = $prod->description;
|
|
||||||
if ($conf->global->PRODUIT_CHANGE_PROD_DESC) $prod->description;
|
if (! $desc)
|
||||||
|
{
|
||||||
|
$desc = $prod->description;
|
||||||
|
}
|
||||||
|
|
||||||
|
// ceci n'a plus d'intérêt si on rajoute la description produit
|
||||||
|
// à chaque fois ???
|
||||||
|
if ($conf->global->PRODUIT_CHANGE_PROD_DESC)
|
||||||
|
{
|
||||||
|
$desc = $prod->description;
|
||||||
|
}
|
||||||
|
|
||||||
$tva_tx = get_default_tva($mysoc,$soc,$prod->tva_tx);
|
$tva_tx = get_default_tva($mysoc,$soc,$prod->tva_tx);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user