From bfb72c2adec008800f4c67c342e8dfb5f63b1a31 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Tue, 11 Sep 2012 08:27:26 +0200 Subject: [PATCH] Adding an already existing GL Account Code does not report as error --- gl/manage/gl_accounts.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gl/manage/gl_accounts.php b/gl/manage/gl_accounts.php index 221a76c..d211a49 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'); } -- 2.30.2