From 01338d13e81a040cae35bd510c5e6dad3321c5e9 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 31 Mar 2011 16:30:43 +0000 Subject: [PATCH] Add link to supplier card --- htdocs/fourn/facture/paiement.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/htdocs/fourn/facture/paiement.php b/htdocs/fourn/facture/paiement.php index 82b4db1eaab..0ebf412e0ae 100644 --- a/htdocs/fourn/facture/paiement.php +++ b/htdocs/fourn/facture/paiement.php @@ -167,6 +167,7 @@ if ($action == 'add_paiement') * View */ +$supplierstatic=new Societe($db); $invoicesupplierstatic = new FactureFournisseur($db); llxHeader(); @@ -214,7 +215,11 @@ if ($action == 'create' || $action == 'add_paiement') print ''; print ''; - print ''; + print ''; print '';
'.$langs->trans('Payment').'
'.$langs->trans('Company').''.$obj->nom.'
'.$langs->trans('Company').''; + $supplierstatic->id=$obj->socid; + $supplierstatic->name=$obj->nom; + print $supplierstatic->getNomUrl(1,'supplier'); + print '
'.$langs->trans('Date').''; $html->select_date($dateinvoice,'','','','',"addpaiement",1,1); print '