{
$input_error = 1;
display_error(_("The item tax type description cannot be empty."));
+ set_focus('name');
}
if ($input_error != 1)
//-----------------------------------------------------------------------------------
-$result = get_all_item_tax_types();
+$result2 = $result = get_all_item_tax_types();
start_table("$table_style width=30%");
-$th = array(_("Name"), _("Tax exempt"), "", "");
+$th = array(_("Name"), _("Tax exempt"),'','');
+
table_header($th);
$k = 0;
-while ($myrow = db_fetch($result))
+while ($myrow = db_fetch($result2))
{
alt_table_row_color($k);
display_note(_("Select which taxes this item tax type is exempt from."), 0, 1);
start_table($table_style2);
- $th = array(_("Tax Name"), _("Is exempt"));
+ $th = array(_("Tax Name"), _("Rate"), _("Is exempt"));
table_header($th);
$tax_types = get_all_tax_types_simple();
alt_table_row_color($k);
label_cell($myrow["name"]);
+ label_cell(percent_format($myrow["rate"])." %", "nowrap align=right");
check_cells("", 'ExemptTax' . $myrow["id"], null);
end_row();
}