X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Fgl_journal.php;h=3ce28e3aa4c91c8512fe0567ac202a2b42a7a4a7;hb=8f7ac519b7aaf8ec219862597e878d3a28316ac6;hp=2417488bc5ff2428666721bef6540a4859b73568;hpb=95856a739a5eacda8c86dc53bff8e7a0ae7b204e;p=fa-stable.git diff --git a/gl/gl_journal.php b/gl/gl_journal.php index 2417488b..3ce28e3a 100644 --- a/gl/gl_journal.php +++ b/gl/gl_journal.php @@ -55,7 +55,8 @@ if (isset($_GET['AddedID'])) display_note(get_gl_view_str($trans_type, $trans_no, _("&View this Journal Entry"))); - hyperlink_no_params($_SERVER['PHP_SELF'], _("Enter &Another Journal Entry")); + reset_focus(); + hyperlink_params($_SERVER['PHP_SELF'], _("Entry &New Journal Entry"), "NewJournal=Yes"); display_footer_exit(); } elseif (isset($_GET['UpdatedID'])) @@ -231,7 +232,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'])) {