浏览代码

FIX: Bug with category functionnality

aspangaro 9 年之前
父节点
当前提交
8f3a254259
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      htdocs/core/class/html.formaccounting.class.php

+ 1 - 1
htdocs/core/class/html.formaccounting.class.php

@@ -67,7 +67,7 @@ class FormAccounting
             $sql = "SELECT c.rowid, c.label as type, c.range_account";
             $sql.= " FROM ".MAIN_DB_PREFIX."c_accounting_category as c";
             $sql.= " WHERE c.active = 1";
-			$sql.= " AND c.account_type = 0";
+			$sql.= " AND c.category_type = 0";
             $sql.= " AND c.fk_country = ".$mysoc->country_id;
             $sql.= " ORDER BY c.label ASC";
         }