From e12b0bfa667d877204b8c2b58fc09ff974253fb7 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@users.sourceforge.net> Date: Fri, 16 Oct 2009 23:32:55 +0000 Subject: [PATCH] Uniformize code --- htdocs/fourn/facture/index.php | 3 ++- htdocs/fourn/fournisseur.facture.class.php | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/fourn/facture/index.php b/htdocs/fourn/facture/index.php index 3741afecc28..c1c886042e9 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 da636d8471a..46b298f2a0c 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; -- GitLab