diff --git a/htdocs/commande/apercu.php b/htdocs/commande/apercu.php
index ae1c785b1c21d8872c4f597a953edefc4cb2b44a..edeb68a706e1578b8cae8432ffb1b94ea48af274 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