[0004594] Suppliers: inactive tax groups should not appear in tax group selector...
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 24 Oct 2018 08:26:37 +0000 (10:26 +0200)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 24 Oct 2018 08:26:37 +0000 (10:26 +0200)
includes/ui/ui_lists.inc

index db706969e68afad534bae17d8ef6cf7adcd5e6fc..0bc9ca0b92f7264bf116843358655e6d1c5b7504 100644 (file)
@@ -1203,7 +1203,7 @@ function tax_types_list_row($label, $name, $selected_id=null, $none_option=false
 function tax_groups_list($name, $selected_id=null,
        $none_option=false, $submit_on_change=false)
 {
-       $sql = "SELECT id, name FROM ".TB_PREF."tax_groups";
+       $sql = "SELECT id, name, inactive FROM ".TB_PREF."tax_groups";
 
        return combo_input($name, $selected_id, $sql, 'id', 'name',
                array(