display_error(_("Cannot delete this item tax type because items have been created referring to it."));
return false;
}
+ if (key_in_foreign_table($selected_id, 'stock_category', 'dflt_tax_type'))
+ {
+ display_error(_("Cannot delete this item tax type because item categories have been created referring to it."));
+ return false;
+ }
return true;
}
$result2 = $result = get_all_item_tax_types(check_value('show_inactive'));
start_form();
-start_table(TABLESTYLE, "width=30%");
+start_table(TABLESTYLE, "width='30%'");
$th = array(_("Name"), _("Tax exempt"),'','');
inactive_control_column($th);
table_header($th);
end_page();
-?>