X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Fgl_journal.php;h=77ba76b4ee1b4ba7761f90cf1264bf8772dd2fdf;hb=93a920d7c98e55be77d2ea84e6c457f681b7a4e4;hp=8d2853348a85e80cc339dbb635c7f78a77e15a83;hpb=47e386676320471986d462929c707552f0ab7362;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'])) {