X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fincludes%2Fdb%2Fitems_category_db.inc;h=fc474d5e88034c5d1d8e3149c0d86c30952f7fc1;hb=1466764d49233238c6097c95341875be552d7487;hp=27a4ed6bf600da29132de2c44bf21cdf7a2dc566;hpb=46c5f7a65a7659a44ae8254c63152074363d3987;p=fa-stable.git 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"); }