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;