diff --git a/htdocs/fourn/facture/index.php b/htdocs/fourn/facture/index.php index 3741afecc28ef9b142a9de78e2fae6cc5e360c4a..c1c886042e918b82120c88cc8b956f1f0acceb07 100644 --- a/htdocs/fourn/facture/index.php +++ b/htdocs/fourn/facture/index.php @@ -183,7 +183,7 @@ if ($resql) print '<input class="flat" size="16" type="text" name="search_libelle" value="'.$_GET["search_libelle"].'">'; print '</td>'; print '<td class="liste_titre" align="left">'; - print '<input class="flat" type="text" name="search_societe" value="'.$_GET["search_societe"].'" size="12">'; + print '<input class="flat" type="text" size="8" name="search_societe" value="'.$_GET["search_societe"].'">'; print '</td><td class="liste_titre" align="right">'; print '<input class="flat" type="text" size="8" name="search_montant_ht" value="'.$_GET["search_montant_ht"].'">'; print '</td><td class="liste_titre" align="right">'; @@ -208,6 +208,7 @@ if ($resql) print '<td nowrap>'; $facturestatic->id=$obj->facid; $facturestatic->ref=$obj->ref; + $facturestatic->ref_supplier=$obj->facnumber; print $facturestatic->getNomUrl(1); print "</td>\n"; print '<td nowrap>'.dol_trunc($obj->facnumber,10)."</td>"; diff --git a/htdocs/fourn/fournisseur.facture.class.php b/htdocs/fourn/fournisseur.facture.class.php index da636d8471a994923e3f58566af122e33f5c501f..46b298f2a0cf493e8bb2f8649a0d17a330c1a88b 100644 --- a/htdocs/fourn/fournisseur.facture.class.php +++ b/htdocs/fourn/fournisseur.facture.class.php @@ -802,6 +802,7 @@ class FactureFournisseur extends Facture $lienfin='</a>'; $label=$langs->trans("ShowInvoice").': '.$this->ref; + if ($this->ref_supplier) $label.=' / '.$this->ref_supplier; if ($withpicto) $result.=($lien.img_object($label,'bill').$lienfin.' '); $result.=$lien.($max?dol_trunc($this->ref,$max):$this->ref).$lienfin;