X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Fmanage%2Fgl_accounts.php;h=99d2a8aba073f3c8ebb60f56222217dbc1100bb7;hb=3f3cfa578adbc2b71f4fd9c8d0f5536d26af43d8;hp=0ce1d5da8e385b5a4a0b7253354df5b151b6fef8;hpb=231f4c00e32dd026d3d740d32bbdaf841ab68330;p=fa-stable.git diff --git a/gl/manage/gl_accounts.php b/gl/manage/gl_accounts.php index 0ce1d5da..99d2a8ab 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'); }