X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Fmanage%2Fgl_account_types.php;h=171bf83f6504758b982d7352774830538fc6b953;hb=02dd4aefa3e3babb64d61140bb7f7de14e37f755;hp=ef8207b1728afe9d969e19727afa7c8ec9d3c997;hpb=3d154c1be37111f3659ad0d1a28b2576a51fdd38;p=fa-stable.git diff --git a/gl/manage/gl_account_types.php b/gl/manage/gl_account_types.php index ef8207b1..171bf83f 100644 --- a/gl/manage/gl_account_types.php +++ b/gl/manage/gl_account_types.php @@ -26,12 +26,12 @@ function can_process() { global $selected_id; - if (!input_num('id')) + /*if (!input_num('id')) { display_error( _("The account id must be an integer and cannot be empty.")); set_focus('id'); return false; - } + }*/ if (strlen($_POST['name']) == 0) { display_error( _("The account group name cannot be empty.")); @@ -120,7 +120,7 @@ $result = get_account_types(check_value('show_inactive')); start_form(); start_table($table_style); -$th = array(_("ID"), _("Name"), _("Subgroup Of"), _("Class Type"), "", ""); +$th = array(_("Group ID"), _("Group Name"), _("Subgroup Of"), _("Class Type"), "", ""); inactive_control_column($th); table_header($th); @@ -132,7 +132,7 @@ while ($myrow = db_fetch($result)) $bs_text = get_account_class_name($myrow["class_id"]); - if ($myrow["parent"] == ANY_NUMERIC) + if ($myrow["parent"] == '0' || $myrow["parent"] == '-1') { $parent_text = ""; }