2
0
forked from Wavyzz/dolibarr

Fix: used field entity of document

This commit is contained in:
Regis Houssin
2009-05-04 20:06:09 +00:00
parent e997af242b
commit 3dcfd254d5
5 changed files with 6 additions and 6 deletions

View File

@@ -175,7 +175,7 @@ class modCommande extends DolibarrModules
$this->export_sql_end[$r] =' FROM ('.MAIN_DB_PREFIX.'commande as c, '.MAIN_DB_PREFIX.'commandedet as cd, '.MAIN_DB_PREFIX.'societe as s)';
$this->export_sql_end[$r] .=' LEFT JOIN '.MAIN_DB_PREFIX.'product as p on (cd.fk_product = p.rowid)';
$this->export_sql_end[$r] .=' WHERE c.fk_soc = s.rowid AND c.rowid = cd.fk_commande';
$this->export_sql_end[$r] .=' AND s.entity = '.$conf->entity;
$this->export_sql_end[$r] .=' AND c.entity = '.$conf->entity;
}