X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=taxes%2Ftax_calc.inc;h=3f54bd226aa65ee6871e86e30598f11f57d9ec37;hb=a963f2e4749169cd8f919db48cfdf5529aff5db9;hp=f0be73231fcf1fb5e8d8def1ebfcb0dc545ec898;hpb=0e64cd1cf3fe3e0c27627641e67f2fbb0c4723c5;p=fa-stable.git diff --git a/taxes/tax_calc.inc b/taxes/tax_calc.inc index f0be7323..3f54bd22 100644 --- a/taxes/tax_calc.inc +++ b/taxes/tax_calc.inc @@ -212,16 +212,4 @@ function get_tax_for_items($items, $prices, $shipping_cost, $tax_group, $tax_inc return $ret_tax_array; } -function is_tax_account($account_code) -{ - $sql= "SELECT id FROM ".TB_PREF."tax_types WHERE - sales_gl_code=".db_escape($account_code)." OR purchasing_gl_code=".db_escape($account_code); - $result = db_query($sql, "checking account is tax account"); - if (db_num_rows($result) > 0) { - $acct = db_fetch($result); - return $acct['id']; - } else - return false; -} - ?> \ No newline at end of file