OR name='default_cogs_act'
OR name='default_adj_act'
OR name='default_inv_sales_act'
OR name='default_cogs_act'
OR name='default_adj_act'
OR name='default_inv_sales_act'
$result = db_query($sql,"Couldn't test for default company GL codes");
$myrow = db_fetch_row($result);
$result = db_query($sql,"Couldn't test for default company GL codes");
$myrow = db_fetch_row($result);
$sql= "SELECT COUNT(*) FROM ".TB_PREF."tax_types WHERE sales_gl_code=$acc OR purchasing_gl_code=$acc";
$result = db_query($sql,"Couldn't test for existing tax GL codes");
$sql= "SELECT COUNT(*) FROM ".TB_PREF."tax_types WHERE sales_gl_code=$acc OR purchasing_gl_code=$acc";
$result = db_query($sql,"Couldn't test for existing tax GL codes");
$sql= "SELECT COUNT(*) FROM ".TB_PREF."quick_entry_lines WHERE
dest_id=$acc AND UPPER(LEFT(action, 1)) <> 'T'";
$result = db_query($sql,"Couldn't test for existing Quick Entry Line GL codes");
$sql= "SELECT COUNT(*) FROM ".TB_PREF."quick_entry_lines WHERE
dest_id=$acc AND UPPER(LEFT(action, 1)) <> 'T'";
$result = db_query($sql,"Couldn't test for existing Quick Entry Line GL codes");