From: Janusz Dobrowolski Date: Sat, 17 Aug 2013 12:50:38 +0000 (+0200) Subject: Bank Transfer: fixed problem with entering transfer between accounts of the same... X-Git-Tag: 2.3-final~212 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=34b0f24a4408b75559778baa6447c02119373999;p=fa-stable.git Bank Transfer: fixed problem with entering transfer between accounts of the same currency. --- diff --git a/gl/bank_transfer.php b/gl/bank_transfer.php index 312d3130..6deb5fe2 100644 --- a/gl/bank_transfer.php +++ b/gl/bank_transfer.php @@ -185,13 +185,13 @@ function check_valid_entries() return false; } - if (!check_num('target_amount', 0)) + if (isset($_POST['target_amount']) && !check_num('target_amount', 0)) { display_error(_("The entered amount is invalid or less than zero.")); set_focus('target_amount'); return false; } - if (input_num('target_amount') == 0) { + if (isset($_POST['target_amount']) && input_num('target_amount') == 0) { display_error(_("The incomming bank amount cannot be 0.")); set_focus('target_amount'); return false;