$sql = "SELECT c.*, t.name as tax_name FROM ".TB_PREF."stock_category c, "
.TB_PREF."item_tax_types t WHERE c.dflt_tax_type=t.id";
$sql = "SELECT c.*, t.name as tax_name FROM ".TB_PREF."stock_category c, "
.TB_PREF."item_tax_types t WHERE c.dflt_tax_type=t.id";
$th = array(_("Name"), _("Tax type"), _("Units"), _("Type"), _("Sales Act"),
_("COGS Account"), _("Inventory Account"), _("Adjustment Account"),
_("Assembly Account"), "", "");
$th = array(_("Name"), _("Tax type"), _("Units"), _("Type"), _("Sales Act"),
_("COGS Account"), _("Inventory Account"), _("Adjustment Account"),
_("Assembly Account"), "", "");
label_cell($myrow["dflt_inventory_act"], "align=center");
label_cell($myrow["dflt_adjustment_act"], "align=center");
label_cell($myrow["dflt_assembly_act"], "align=center");
label_cell($myrow["dflt_inventory_act"], "align=center");
label_cell($myrow["dflt_adjustment_act"], "align=center");
label_cell($myrow["dflt_assembly_act"], "align=center");
- edit_button_cell("Edit".$myrow[0], _("Edit"));
- delete_button_cell("Delete".$myrow[0], _("Delete"));
+ inactive_control_cell($myrow["category_id"], $myrow["inactive"], 'stock_category', 'category_id');
+ edit_button_cell("Edit".$myrow["category_id"], _("Edit"));
+ delete_button_cell("Delete".$myrow["category_id"], _("Delete"));