Skip to content

Commit

Permalink
don't display ref_fourn if it's same as ref
Browse files Browse the repository at this point in the history
decrease size of the select list
  • Loading branch information
defrance committed Aug 4, 2015
1 parent fb25f47 commit 83c4652
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions htdocs/core/class/html.form.class.php
Expand Up @@ -2072,10 +2072,12 @@ function select_produits_fournisseurs_list($socid,$selected='',$htmlname='produc
if ($filterkey && $filterkey != '') $label=preg_replace('/('.preg_quote($filterkey).')/i','<strong>$1</strong>',$label,1);

$opt.=$objp->ref;
if (! empty($objp->idprodfournprice)) $opt.=' ('.$objp->ref_fourn.')';
if (! empty($objp->idprodfournprice) && ($objp->ref != $objp->ref_fourn))
$opt.=' ('.$objp->ref_fourn.')';
$opt.=' - ';
$outval.=$objRef;
if (! empty($objp->idprodfournprice)) $outval.=' ('.$objRefFourn.')';
if (! empty($objp->idprodfournprice) && ($objp->ref != $objp->ref_fourn))
$outval.=' ('.$objRefFourn.')';
$outval.=' - ';
$opt.=dol_trunc($label, 72).' - ';
$outval.=dol_trunc($label, 72).' - ';
Expand Down

0 comments on commit 83c4652

Please sign in to comment.