Merged changes from main branch up to 2.1.3.
[fa-stable.git] / gl / gl_journal.php
index 5bff91650ebf1dbb2f76297d16f3764acf54e3ec..3ce28e3aa4c91c8512fe0567ac202a2b42a7a4a7 100644 (file)
@@ -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'])) 
        {