X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=gl%2Fgl_journal.php;h=77ba76b4ee1b4ba7761f90cf1264bf8772dd2fdf;hb=7d9fe15f85c15572535c5fa4555b9a72e9d93f04;hp=8d2853348a85e80cc339dbb635c7f78a77e15a83;hpb=d567a10b7925c8bb97c734e213d6651a979af29d;p=fa-stable.git diff --git a/gl/gl_journal.php b/gl/gl_journal.php index 8d285334..77ba76b4 100644 --- a/gl/gl_journal.php +++ b/gl/gl_journal.php @@ -91,7 +91,6 @@ if (isset($_POST['Process'])) $input_error = 1; } - if (!is_date($_POST['date_'])) { display_error(_("The entered date is invalid.")); @@ -169,7 +168,12 @@ function check_item_data() set_focus('AmountCredit'); return false; } - + + if (!is_tax_gl_unique(get_post('code_id'))) { + display_error(_("Cannot post to GL account used by more than one tax type.")); + set_focus('code_id'); + return false; + } if ($_SESSION["wa_current_user"]->access != 2 && is_bank_account($_POST['code_id'])) {