From 35a1a850a8a427570e98e45e5dba60f838eab56e 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 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'); } -- 2.30.2