X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=gl%2Fgl_journal.php;h=3ce28e3aa4c91c8512fe0567ac202a2b42a7a4a7;hb=29bfc95a3b218ab90694535a0e94acd380b738b5;hp=5bff91650ebf1dbb2f76297d16f3764acf54e3ec;hpb=263d7084b71b0cae4d5781defcd08a6f2a7c841e;p=fa-stable.git diff --git a/gl/gl_journal.php b/gl/gl_journal.php index 5bff9165..3ce28e3a 100644 --- a/gl/gl_journal.php +++ b/gl/gl_journal.php @@ -232,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'])) {