modification de la description produit
This commit is contained in:
parent
e1ae512203
commit
c68ab7672a
@ -684,7 +684,7 @@ if ($_GET['propalid'] > 0)
|
|||||||
$sql = 'SELECT pt.rowid, pt.description, pt.price, pt.fk_product, pt.qty, pt.tva_tx, pt.remise_percent, pt.subprice,';
|
$sql = 'SELECT pt.rowid, pt.description, pt.price, pt.fk_product, pt.qty, pt.tva_tx, pt.remise_percent, pt.subprice,';
|
||||||
$sql.= ' p.label as product, p.ref, p.fk_product_type, p.rowid as prodid';
|
$sql.= ' p.label as product, p.ref, p.fk_product_type, p.rowid as prodid';
|
||||||
|
|
||||||
if ($conf->global->PROP_ADD_PROD_DESC && $conf->global->CHANGE_PROD_DESC=0)
|
if ($conf->global->PROP_ADD_PROD_DESC && !$conf->global->CHANGE_PROD_DESC)
|
||||||
{
|
{
|
||||||
$sql.= ', p.description as product_desc';
|
$sql.= ', p.description as product_desc';
|
||||||
}
|
}
|
||||||
@ -730,7 +730,7 @@ if ($_GET['propalid'] > 0)
|
|||||||
print ' '.$objp->ref.'</a>';
|
print ' '.$objp->ref.'</a>';
|
||||||
print ' - '.nl2br(stripslashes($objp->product));
|
print ' - '.nl2br(stripslashes($objp->product));
|
||||||
|
|
||||||
if ($conf->global->PROP_ADD_PROD_DESC && $conf->global->CHANGE_PROD_DESC=0)
|
if ($conf->global->PROP_ADD_PROD_DESC && !$conf->global->CHANGE_PROD_DESC)
|
||||||
{
|
{
|
||||||
print '<br>'.nl2br(stripslashes($objp->product_desc));
|
print '<br>'.nl2br(stripslashes($objp->product_desc));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -733,8 +733,7 @@ else
|
|||||||
print ' '.$objp->ref.'</a> - '.stripslashes(nl2br($objp->product));
|
print ' '.$objp->ref.'</a> - '.stripslashes(nl2br($objp->product));
|
||||||
print ($objp->description && $objp->description!=$objp->product)?'<br>'.stripslashes(nl2br($objp->description)):'';
|
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)
|
||||||
if ($conf->global->COM_ADD_PROD_DESC && !$conf->global->CHANGE_PROD_DESC=0)
|
|
||||||
{
|
{
|
||||||
print '<br>'.nl2br(stripslashes($objp->product_desc));
|
print '<br>'.nl2br(stripslashes($objp->product_desc));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user