Accounts entry. We only accept 0-9 and a dot if $accounts_alpha = 0 (default)
[fa-stable.git] / taxes / item_tax_types.php
index b03323a0ee0130c23db02fb925430c9da12c819f..f2d9b06328f275bd5d8d31e05b02a8b8428af0e5 100644 (file)
@@ -77,7 +77,7 @@ function can_delete($selected_id)
                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, 'item_tax_types', 'dflt_tax_type'))
+       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;
@@ -113,7 +113,7 @@ if ($Mode == 'RESET')
 $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);