-function get_gl_accounts_in_type($type)
-{
- $sql = "SELECT * FROM ".TB_PREF."chart_master WHERE account_type=$type ORDER BY account_code";
-
- return db_query($sql, "could not get gl accounts");
-}
-
-function num_accounts_in_type($type, $parent)
-{
- $sql = "SELECT COUNT(*) FROM ".TB_PREF."chart_master WHERE account_type=$type OR account_type=$parent";
-
- $result = db_query($sql, "could not get gl accounts");
- $row = db_fetch_row($result);
- return $row[0];
-}
-