From f5bca489c69aca424507c14ad9d28e717e5c676c Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 19 Mar 2007 15:43:44 +0000 Subject: [PATCH] Ajout des commandes clients dans l'assistant export --- htdocs/includes/modules/modCommande.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/includes/modules/modCommande.class.php b/htdocs/includes/modules/modCommande.class.php index 50a1ec7b3e6..f58a3edb82a 100644 --- a/htdocs/includes/modules/modCommande.class.php +++ b/htdocs/includes/modules/modCommande.class.php @@ -172,7 +172,7 @@ class modCommande extends DolibarrModules else $i++; $this->export_sql[$r].=$key.' as '.$value; } - $this->export_sql[$r].=' from '.MAIN_DB_PREFIX.'commande as c, '.MAIN_DB_PREFIX.'commandedet as cd, '.MAIN_DB_PREFIX.'societe as s WHERE c.fk_soc = s.idp AND c.rowid = cd.fk_facture'; + $this->export_sql[$r].=' from '.MAIN_DB_PREFIX.'commande as c, '.MAIN_DB_PREFIX.'commandedet as cd, '.MAIN_DB_PREFIX.'societe as s WHERE c.fk_soc = s.idp AND c.rowid = cd.fk_commande'; $this->export_permission[$r]=array(array("commande","commande","export")); }