Item Tax Types moved to Setup module
[fa-stable.git] / taxes / db / tax_groups_db.inc
index 5abe4333b969de031c5e3a95cec103c302387b61..df48e0a1793d3b6a370825df7c7f4aaa0535cb8a 100644 (file)
@@ -47,9 +47,10 @@ function update_tax_group($id, $name, $tax_shipping, $taxes, $rates)
        commit_transaction();                   
 }
 
-function get_all_tax_groups()
+function get_all_tax_groups($all=false)
 {
        $sql = "SELECT * FROM ".TB_PREF."tax_groups";
+       if (!$all) $sql .= " WHERE !inactive";
        
        return db_query($sql, "could not get all tax group");
 }