diff --git a/htdocs/expedition/index.php b/htdocs/expedition/index.php index 9033a9a5c65..7b2e688f114 100644 --- a/htdocs/expedition/index.php +++ b/htdocs/expedition/index.php @@ -170,7 +170,7 @@ print ''; /* * Commandes en traitement */ -$sql = "SELECT c.rowid, c.ref, s.nom, s.rowid as socid"; +$sql = "SELECT c.rowid, c.ref, c.fk_statut as status, c.facture as billed, s.nom, s.rowid as socid"; $sql.= " FROM ".MAIN_DB_PREFIX."commande as c"; $sql.= ", ".MAIN_DB_PREFIX."societe as s"; if (!$user->rights->societe->client->voir && !$socid) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc"; @@ -191,7 +191,7 @@ if ( $resql ) $i = 0; print ''; print ''; - print ''; + print ''; $var = True; while ($i < $num) { @@ -206,12 +206,19 @@ if ( $resql ) $companystatic->nom=$obj->nom; $companystatic->id=$obj->socid; print $companystatic->getNomUrl(1,'customer'); - print ''; + print ''; + print ''; + print ''; $i++; } print "
'.$langs->trans("OrdersInProcess").'
'.$langs->trans("OrdersInProcess").'
'; + $orderstatic->statut=$obj->status; + $orderstatic->facturee=$obj->billed; + print $orderstatic->getLibStatut(3); + print '

"; } } +else dol_print_error($db); /* @@ -271,6 +278,7 @@ if ($resql) } $db->free($resql); } +else dol_print_error($db); print '';