Merge pull request #6478 from laudeco/fix/load_board_stat
[Expense report] - fix the load board query
This commit is contained in:
commit
a95e41644c
@ -1685,7 +1685,8 @@ class ExpenseReport extends CommonObject
|
|||||||
if ($option == 'toapprove') $sql.= " WHERE ex.fk_statut = 2";
|
if ($option == 'toapprove') $sql.= " WHERE ex.fk_statut = 2";
|
||||||
else $sql.= " WHERE ex.fk_statut = 5";
|
else $sql.= " WHERE ex.fk_statut = 5";
|
||||||
$sql.= " AND ex.entity IN (".getEntity('expensereport', 1).")";
|
$sql.= " AND ex.entity IN (".getEntity('expensereport', 1).")";
|
||||||
$sql.= " AND ex.fk_user_author IN (".join(',',$userchildids).")";
|
$sql.= " AND (ex.fk_user_author IN (".join(',',$userchildids).")";
|
||||||
|
$sql.= " OR ex.fk_user_validator IN (".join(',',$userchildids)."))";
|
||||||
|
|
||||||
$resql=$this->db->query($sql);
|
$resql=$this->db->query($sql);
|
||||||
if ($resql)
|
if ($resql)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user