don't display ref_fourn if it's same as ref
decrease size of the select list
This commit is contained in:
parent
fb25f479f2
commit
83c4652a16
@ -2072,10 +2072,12 @@ class Form
|
|||||||
if ($filterkey && $filterkey != '') $label=preg_replace('/('.preg_quote($filterkey).')/i','<strong>$1</strong>',$label,1);
|
if ($filterkey && $filterkey != '') $label=preg_replace('/('.preg_quote($filterkey).')/i','<strong>$1</strong>',$label,1);
|
||||||
|
|
||||||
$opt.=$objp->ref;
|
$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.=' - ';
|
$opt.=' - ';
|
||||||
$outval.=$objRef;
|
$outval.=$objRef;
|
||||||
if (! empty($objp->idprodfournprice)) $outval.=' ('.$objRefFourn.')';
|
if (! empty($objp->idprodfournprice) && ($objp->ref != $objp->ref_fourn))
|
||||||
|
$outval.=' ('.$objRefFourn.')';
|
||||||
$outval.=' - ';
|
$outval.=' - ';
|
||||||
$opt.=dol_trunc($label, 72).' - ';
|
$opt.=dol_trunc($label, 72).' - ';
|
||||||
$outval.=dol_trunc($label, 72).' - ';
|
$outval.=dol_trunc($label, 72).' - ';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user