modification de la description produit

This commit is contained in:
Regis Houssin 2006-02-11 19:09:12 +00:00
parent 78cb37d899
commit c6b59aaa72

View File

@ -685,8 +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)
//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';
}
@ -733,8 +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)
//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));
}