Fix warning

This commit is contained in:
Laurent Destailleur
2020-12-27 19:21:37 +01:00
parent 5ff53691a5
commit 4ec78d029b
5 changed files with 6 additions and 5 deletions

View File

@@ -263,6 +263,7 @@ class modCommande extends DolibarrModules
$this->export_sql_end[$r] .= ' WHERE c.fk_soc = s.rowid AND c.rowid = cd.fk_commande';
$this->export_sql_end[$r] .= ' AND c.entity IN ('.getEntity('commande').')';
if (empty($user->rights->societe->client->voir)) $this->export_sql_end[$r] .= ' AND sc.fk_user = '.(empty($user) ? 0 : $user->id);
// Imports
//--------
$r = 0;