Skip to content
Snippets Groups Projects
Commit 3914f0eb authored by Eric Seigne's avatar Eric Seigne
Browse files

on affiche les commandes associees que si le module commandes est actif

parent a3e7d820
No related branches found
No related tags found
No related merge requests found
<?php <?php
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> /* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
...@@ -308,8 +309,9 @@ if ($_socid > 0) ...@@ -308,8 +309,9 @@ if ($_socid > 0)
/* /*
* Commandes * Commandes
* * Que si le module est actif !
*/ */
if($conf->commande->enabled) {
print '<table class="border" width="100%">'; print '<table class="border" width="100%">';
$sql = "SELECT s.nom, s.idp, p.rowid as propalid, p.total_ht, p.ref, ".$db->pdate("p.date_commande")." as dp"; $sql = "SELECT s.nom, s.idp, p.rowid as propalid, p.total_ht, p.ref, ".$db->pdate("p.date_commande")." as dp";
$sql .= " FROM ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."commande as p WHERE p.fk_soc = s.idp "; $sql .= " FROM ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."commande as p WHERE p.fk_soc = s.idp ";
...@@ -341,7 +343,7 @@ if ($_socid > 0) ...@@ -341,7 +343,7 @@ if ($_socid > 0)
} }
$db->free(); $db->free();
} }
}
/* /*
* *
* Liste des projets associs * Liste des projets associs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment