Fix: missing field change name

This commit is contained in:
Regis Houssin 2012-04-16 11:52:27 +02:00
parent a03b216c63
commit 6c3e88e43a

View File

@ -301,7 +301,7 @@ print '</td><td width="70%" valign="top" class="notopnoleftnoright">';
$max=5;
$sql = "SELECT c.rowid, c.ref, c.fk_statut, s.nom, s.rowid as socid,";
$sql.= " date_cloture as datec";
$sql.= " date_approve as datea";
$sql.= " FROM ".MAIN_DB_PREFIX."commande_fournisseur as c";
$sql.= ", ".MAIN_DB_PREFIX."societe as s";
if (!$user->rights->societe->client->voir && !$socid) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
@ -355,7 +355,7 @@ if ($resql)
print '</td>';
print '<td><a href="'.DOL_URL_ROOT.'/fourn/fiche.php?socid='.$obj->socid.'">'.img_object($langs->trans("ShowCompany"),"company").' '.$obj->nom.'</a></td>';
print '<td>'.dol_print_date($db->jdate($obj->datec)).'</td>';
print '<td>'.dol_print_date($db->jdate($obj->datea)).'</td>';
print '<td align="right">'.$commandestatic->LibStatut($obj->fk_statut,5).'</td>';
print '</tr>';
$i++;