From 891a0f92552123bed0df42fdbcaaecce7aa6c715 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 6 Oct 2010 08:13:22 +0000 Subject: [PATCH] Add delivery date in order list --- htdocs/commande/liste.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/htdocs/commande/liste.php b/htdocs/commande/liste.php index 994a9c5ec6e..8306b059548 100644 --- a/htdocs/commande/liste.php +++ b/htdocs/commande/liste.php @@ -32,6 +32,7 @@ require_once(DOL_DOCUMENT_ROOT."/core/class/html.formfile.class.php"); require_once(DOL_DOCUMENT_ROOT ."/commande/class/commande.class.php"); $langs->load('orders'); +$langs->load('deliveries'); $langs->load('companies'); $orderyear=isset($_GET["orderyear"])?$_GET["orderyear"]:$_POST["orderyear"]; @@ -172,11 +173,11 @@ if ($resql) print ''; print ''; print_liste_field_titre($langs->trans('Ref'),'liste.php','c.ref','','&socid='.$socid.'&viewstatut='.$viewstatut,'width="25%"',$sortfield,$sortorder); - print_liste_field_titre($langs->trans('Company'),'liste.php','s.nom','','&socid='.$socid.'&viewstatut='.$viewstatut,'width="30%"',$sortfield,$sortorder); - print_liste_field_titre($langs->trans('RefCustomerOrder'),'liste.php','c.ref_client','','&socid='.$socid.'&viewstatut='.$viewstatut,'width="15%"',$sortfield,$sortorder); - print_liste_field_titre($langs->trans('OrderDate'),'liste.php','c.date_commande','','&socid='.$socid.'&viewstatut='.$viewstatut, 'width="20%" align="right"',$sortfield,$sortorder); - print_liste_field_titre($langs->trans('DeliveryDate'),'liste.php','c.date_livraison','','&socid='.$socid.'&viewstatut='.$viewstatut, 'width="20%" align="right"',$sortfield,$sortorder); - print_liste_field_titre($langs->trans('Status'),'liste.php','c.fk_statut','','&socid='.$socid.'&viewstatut='.$viewstatut,'width="10%" align="center"',$sortfield,$sortorder); + print_liste_field_titre($langs->trans('Company'),'liste.php','s.nom','','&socid='.$socid.'&viewstatut='.$viewstatut,'',$sortfield,$sortorder); + print_liste_field_titre($langs->trans('RefCustomerOrder'),'liste.php','c.ref_client','','&socid='.$socid.'&viewstatut='.$viewstatut,'',$sortfield,$sortorder); + print_liste_field_titre($langs->trans('OrderDate'),'liste.php','c.date_commande','','&socid='.$socid.'&viewstatut='.$viewstatut, 'align="right"',$sortfield,$sortorder); + print_liste_field_titre($langs->trans('DeliveryDate'),'liste.php','c.date_livraison','','&socid='.$socid.'&viewstatut='.$viewstatut, 'align="right"',$sortfield,$sortorder); + print_liste_field_titre($langs->trans('Status'),'liste.php','c.fk_statut','','&socid='.$socid.'&viewstatut='.$viewstatut,'align="center"',$sortfield,$sortorder); print ''; // Lignes des champs de filtre print ''; @@ -200,7 +201,7 @@ if ($resql) $objp = $db->fetch_object($resql); $var=!$var; print ''; - print ''; // Statut - print ''; + print ''; print '';
'; + print ''; $generic_commande->id=$objp->rowid; $generic_commande->ref=$objp->ref; @@ -256,7 +257,7 @@ if ($resql) print ''.$generic_commande->LibStatut($objp->fk_statut,$objp->facturee,5).''.$generic_commande->LibStatut($objp->fk_statut,$objp->facturee,5).'