2
0
forked from Wavyzz/dolibarr

Finished new module to manage expense reports !

Fix export to support corectly multicompany
This commit is contained in:
Laurent Destailleur
2015-02-22 13:16:49 +01:00
parent 6d1324b463
commit 2bc6ac4671
31 changed files with 1189 additions and 373 deletions

View File

@@ -220,7 +220,7 @@ class modUser extends DolibarrModules
}
$this->export_sql_start[$r]='SELECT DISTINCT ';
$this->export_sql_end[$r] =' FROM '.MAIN_DB_PREFIX.'user as u';
$this->export_sql_end[$r] .=' WHERE u.entity IN (0,'.$conf->entity.')';
$this->export_sql_end[$r] .=' WHERE u.entity IN ('.getEntity('user',1).')';
}