From: Janusz Dobrowolski Date: Wed, 26 Jun 2013 19:31:54 +0000 (+0200) Subject: Item Categories: categories table is now sorted by category description. X-Git-Tag: 2.3-final~231 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=78e4d3f07b6e4a09153025d91a8bbd4c31e23aff;p=fa-stable.git Item Categories: categories table is now sorted by category description. --- diff --git a/inventory/includes/db/items_category_db.inc b/inventory/includes/db/items_category_db.inc index 27a4ed6b..fc474d5e 100644 --- a/inventory/includes/db/items_category_db.inc +++ b/inventory/includes/db/items_category_db.inc @@ -68,7 +68,9 @@ function get_item_categories($show_inactive) { $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"; - if (!$show_inactive) $sql .= " AND !c.inactive"; + if (!$show_inactive) + $sql .= " AND !c.inactive"; + $sql .= " ORDER by description"; return db_query($sql, "could not get stock categories"); }