Merged changes from stable branch up to 2.3.12
[fa-stable.git] / gl / gl_bank.php
index c4dd404df7c8c709d845bfc323d50630470a8c6c..8c8860d0c47dbf405d7521eb43b8b2033d029571 100644 (file)
@@ -281,6 +281,8 @@ if (isset($_POST['Process']))
                set_focus('person_id');
                $input_error = 1;
        }
+       if (!db_has_currency_rates(get_bank_account_currency($_POST['bank_account']), $_POST['date_'], true))
+               $input_error = 1;
 
        if ($input_error == 1)
                unset($_POST['Process']);