From 1eb7fadb93144bd2bde45cd788308fb61fd8bec6 Mon Sep 17 00:00:00 2001 From: Regis Houssin <regis@dolibarr.fr> Date: Wed, 8 Feb 2006 17:48:10 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20onglet=20aper=E7u=20sur=20la=20fiche=20?= =?UTF-8?q?commande=20client?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/commande/apercu.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/htdocs/commande/apercu.php b/htdocs/commande/apercu.php index ae1c785b1c2..edeb68a706e 100644 --- a/htdocs/commande/apercu.php +++ b/htdocs/commande/apercu.php @@ -160,13 +160,13 @@ if ($_GET["id"] > 0) { // ligne 2 // partie Gauche print '<tr><td>'.$langs->trans('Date').'</td><td colspan="3">'; - print dolibarr_print_date($propal->date,'%a %e %B %Y'); + print dolibarr_print_date($commande->date,'%a %e %B %Y'); print '</td>'; // partie Droite print '<td>'.$langs->trans('DateEndPropal').'</td><td>'; - if ($propal->fin_validite) { - print dolibarr_print_date($propal->fin_validite,'%a %d %B %Y'); + if ($commande->fin_validite) { + print dolibarr_print_date($commande->fin_validite,'%a %d %B %Y'); } else { print $langs->trans("Unknown"); } @@ -187,11 +187,11 @@ if ($_GET["id"] > 0) { print '<font class="error">Cette societe n\'a pas de contact, veuillez en cr�er un avant de faire votre proposition commerciale</font><br>'; print '<a href="'.DOL_URL_ROOT.'/contact/fiche.php?socid='.$societe->id.'&action=create&backtoreferer=1">'.$langs->trans('AddContact').'</a>'; } else { - if (!empty($propal->contactid)) { + if (!empty($commande->contactid)) { require_once(DOL_DOCUMENT_ROOT.'/contact.class.php'); $contact=new Contact($db); - $contact->fetch($propal->contactid); - print '<a href="'.DOL_URL_ROOT.'/contact/fiche.php?id='.$propal->contactid.'" title="'.$langs->trans('ShowContact').'">'; + $contact->fetch($commande->contactid); + print '<a href="'.DOL_URL_ROOT.'/contact/fiche.php?id='.$commande->contactid.'" title="'.$langs->trans('ShowContact').'">'; print $contact->firstname.' '.$contact->name; print '</a>'; } else { @@ -279,7 +279,7 @@ if ($_GET["id"] > 0) { // ligne 4 // partie Gauche print '<tr><td height="10" nowrap>'.$langs->trans('GlobalDiscount').'</td>'; - print '<td colspan="3">'.$propal->remise_percent.'%</td>'; + print '<td colspan="3">'.$commande->remise_percent.'%</td>'; print '</tr>'; // ligne 5 -- GitLab