Items: fixed item tax type selector to exclude inactive item tax types.
[fa-stable.git] / taxes / db / item_tax_types_db.inc
index 809f9f9ebe43e233f753c2c63be3ec7a18d64ef9..446a5dc7cb99ffe5839ccebe0f0929070206c1da 100644 (file)
@@ -110,3 +110,8 @@ function get_item_tax_type_exemptions($id)
        return db_query($sql, "could not get item tax type exemptions");
 }
 
+function item_type_inactive($id)
+{
+       $type = get_item_tax_type($id);
+       return @$type['inactive'];
+}