X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Fmanage%2Fgl_accounts.php;h=d211a491798cbbc7d0f60efa4f972ff9de54dfb1;hb=44abddfd180ec27cbd889f4c8c8f8271f6d6d19d;hp=221a76cd28e8d7944f1fc84157fa7c12372f8f6f;hpb=9bb7d0742be8a96fe8152c338998bbd5b6daa0be;p=fa-stable.git diff --git a/gl/manage/gl_accounts.php b/gl/manage/gl_accounts.php index 221a76cd..d211a491 100644 --- a/gl/manage/gl_accounts.php +++ b/gl/manage/gl_accounts.php @@ -65,7 +65,6 @@ if (isset($_POST['add']) || isset($_POST['update'])) display_error( _("The account code must be numeric.")); set_focus('account_code'); } - if ($input_error != 1) { if ($accounts_alpha == 2) @@ -99,6 +98,8 @@ if (isset($_POST['add']) || isset($_POST['update'])) display_notification(_("New account has been added.")); $selected_account = $_POST['AccountList'] = $_POST['account_code']; } + else + display_error(_("Account not added, possible duplicate Account Code.")); } $Ajax->activate('_page_body'); }