function tax_types_list($name, $selected_id,
$none_option=false, $none_option_name=null, $submit_on_change=false)
{
- simple_codeandname_list("SELECT id, name FROM ".TB_PREF."tax_types",
+ simple_codeandname_list("SELECT id, CONCAT(name, ' (',rate,'%)') as name FROM ".TB_PREF."tax_types",
$name, $selected_id, $none_option, $none_option_name, true, $submit_on_change);
}
//-----------------------------------------------------------------------------------
-$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"]);
+ percent_cell($myrow["rate"]);
check_cells("", 'ExemptTax' . $myrow["id"], null);
end_row();
}