Cleanup: removed all closing tags in php files.
[fa-stable.git] / taxes / db / tax_groups_db.inc
index 032cc560f6596b2fb54e5e4b29f1cf79e1179a38..f39eccef51bbc1655a4d6532edebddff126330a1 100644 (file)
@@ -89,12 +89,11 @@ function delete_tax_group_items($id)
 //
 function get_tax_group_rates($group_id=null, $tax_shipping=false)
 {
-       global $suppress_tax_rates;
+       global $SysPrefs;
 
        $sql = 
        "SELECT t.id as tax_type_id,"
-               .(isset($suppress_tax_rates) && $suppress_tax_rates == 1
-                       ? "t.name as tax_type_name,"
+               .($SysPrefs->suppress_tax_rates() == 1 ? "t.name as tax_type_name,"
                        : "CONCAT(t.name, ' (', t.rate, '%)') as tax_type_name,")
                ."t.sales_gl_code,
                  t.purchasing_gl_code,
@@ -140,4 +139,3 @@ function get_shipping_tax_as_array($id)
        
        return $ret_tax_array;
 }
-?>
\ No newline at end of file