X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Fgl_bank.php;h=8c8860d0c47dbf405d7521eb43b8b2033d029571;hb=eed850acf1c3a796fe0cc1ed673cc6cd7d893647;hp=c4dd404df7c8c709d845bfc323d50630470a8c6c;hpb=96f82e64b766fa59a3ebc3176e4efd17736f6878;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']);