From c717d7f7316d46d8f28fee3b227758d5399ff063 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 6 May 2006 12:17:36 +0000 Subject: [PATCH] =?UTF-8?q?faire=20apparaitre=20la=20commande=20r=E9f=E9re?= =?UTF-8?q?nte=20sur=20la=20liste=20des=20exp=E9ditions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/expedition/liste.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/expedition/liste.php b/htdocs/expedition/liste.php index d93739a6fed..489f0c57970 100644 --- a/htdocs/expedition/liste.php +++ b/htdocs/expedition/liste.php @@ -57,7 +57,7 @@ $offset = $limit * $_GET["page"] ; llxHeader('',$langs->trans('ListOfSendings'),'ch-expedition.html'); -$sql = "SELECT e.rowid, e.ref,".$db->pdate("e.date_expedition")." as date_expedition, e.fk_statut, s.nom as socname, s.idp"; +$sql = "SELECT e.rowid, e.ref,".$db->pdate("e.date_expedition")." as date_expedition, e.fk_statut, s.nom as socname, s.idp, c.ref as comref, c.rowid as comid"; if (!$user->rights->commercial->client->voir && !$socidp) $sql .= ", sc.fk_soc, sc.fk_user"; $sql .= " FROM ".MAIN_DB_PREFIX."expedition as e"; if (!$user->rights->commercial->client->voir && !$socidp) $sql .= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc, ".MAIN_DB_PREFIX."commande as c"; @@ -99,6 +99,7 @@ if ($resql) print ''; print_liste_field_titre($langs->trans("Ref"),"liste.php","e.ref","","&socidp=$socidp",'width="15%"',$sortfield); print_liste_field_titre($langs->trans("Company"),"liste.php","s.nom", "", "&socidp=$socidp",'width="25%" align="left"',$sortfield); + print_liste_field_titre($langs->trans("Order"),"liste.php","c.ref", "", "&socidp=$socidp",'width="25%" align="center"',$sortfield); print_liste_field_titre($langs->trans("Date"),"liste.php","e.date_expedition","","&socidp=$socidp", 'width="25%" align="right" colspan="2"',$sortfield); print_liste_field_titre($langs->trans("Status"),"liste.php","e.fk_statut","","&socidp=$socidp",'width="10%" align="center"',$sortfield); print "\n"; @@ -113,6 +114,7 @@ if ($resql) print "rowid\">".img_object($langs->trans("ShowSending"),"sending").' '; print "rowid\">".$objp->ref."\n"; print ''.$objp->socname.''; + print ''.$objp->comref.''; $now = time(); $lim = 3600 * 24 * 15 ;