X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=gl%2Fgl_bank.php;h=8c8860d0c47dbf405d7521eb43b8b2033d029571;hb=3f3cfa578adbc2b71f4fd9c8d0f5536d26af43d8;hp=c4dd404df7c8c709d845bfc323d50630470a8c6c;hpb=231f4c00e32dd026d3d740d32bbdaf841ab68330;p=fa-stable.git diff --git a/gl/gl_bank.php b/gl/gl_bank.php index c4dd404d..8c8860d0 100644 --- a/gl/gl_bank.php +++ b/gl/gl_bank.php @@ -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']);