From e12b0bfa667d877204b8c2b58fc09ff974253fb7 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur 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 ''; print ''; print ''; - print ''; + print ''; print ''; print ''; print ''; @@ -208,6 +208,7 @@ if ($resql) print ''; $facturestatic->id=$obj->facid; $facturestatic->ref=$obj->ref; + $facturestatic->ref_supplier=$obj->facnumber; print $facturestatic->getNomUrl(1); print "\n"; print ''.dol_trunc($obj->facnumber,10).""; 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=''; $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;