modification de la description produit

This commit is contained in:
Regis Houssin 2006-02-11 19:06:44 +00:00
parent ed83b33bc6
commit 78cb37d899

View File

@ -685,7 +685,8 @@ else
$sql = 'SELECT l.fk_product, l.description, l.price, l.qty, l.rowid, l.tva_tx, l.remise_percent, l.subprice,';
$sql.= ' p.label as product, p.ref, p.fk_product_type, p.rowid as prodid';
if ($conf->global->COM_ADD_PROD_DESC && $conf->global->CHANGE_PROD_DESC=0)
if ($conf->global->COM_ADD_PROD_DESC)
//if ($conf->global->COM_ADD_PROD_DESC && $conf->global->CHANGE_PROD_DESC=0)
{
$sql.= ', p.description as product_desc';
}
@ -732,7 +733,8 @@ else
print ' '.$objp->ref.'</a> - '.stripslashes(nl2br($objp->product));
print ($objp->description && $objp->description!=$objp->product)?'<br>'.stripslashes(nl2br($objp->description)):'';
if ($conf->global->COM_ADD_PROD_DESC && $conf->global->CHANGE_PROD_DESC=0)
if ($conf->global->COM_ADD_PROD_DESC)
//if ($conf->global->COM_ADD_PROD_DESC && $conf->global->CHANGE_PROD_DESC=0)
{
print '<br>'.nl2br(stripslashes($objp->product_desc));
}