diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php index 7a5e7db7b23..7ca22bca919 100644 --- a/htdocs/comm/fiche.php +++ b/htdocs/comm/fiche.php @@ -944,7 +944,7 @@ if ($socid > 0) if ($obj->fk_facture) { $facturestatic->ref=$langs->trans("Invoice"); - $facturestatic->id=$obj->rowid; + $facturestatic->id=$obj->fk_facture; $facturestatic->type=$obj->type; print $facturestatic->getNomUrl(1,'compta'); }