Browse Source

[expense type deactivate] [#6363] Expense type deactivated but list

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.
De Coninck Laurent 8 years ago
parent
commit
bbf34bfda8
1 changed files with 1 additions and 0 deletions
  1. 1 0
      htdocs/expensereport/class/expensereport.class.php

+ 1 - 0
htdocs/expensereport/class/expensereport.class.php

@@ -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)