Skip to content

Commit

Permalink
[expense type deactivate] [#6363] Expense type deactivated but list
Browse files Browse the repository at this point in the history
When an expense type is disabled in dictionaries, it's always displayed and selectable in expense note module, when we create a new line in an expense note.
  • Loading branch information
De Coninck Laurent committed Feb 6, 2017
1 parent fea2b08 commit bbf34bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions htdocs/expensereport/class/expensereport.class.php
Expand Up @@ -2052,6 +2052,7 @@ function select_type_fees_id($selected='',$htmlname='type',$showempty=0)
}

$sql = "SELECT c.id, c.code, c.label as type FROM ".MAIN_DB_PREFIX."c_type_fees as c";
$sql.= " WHERE c.active = 1";
$sql.= " ORDER BY c.label ASC";
$resql=$db->query($sql);
if ($resql)
Expand Down

0 comments on commit bbf34bf

Please sign in to comment.