X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fcustomer_payments.php;h=34a862b1fc93e39c468bdfd73d46b8bdc69f7f60;hb=aa2ff78063656a7843d763859e3b9b4c15a3f920;hp=f5d1f011a5e9a1ec4347023e295c3c45bf721738;hpb=cf8ea0adfea887c575f6833ef36403a9568585da;p=fa-stable.git diff --git a/sales/customer_payments.php b/sales/customer_payments.php index f5d1f011..34a862b1 100644 --- a/sales/customer_payments.php +++ b/sales/customer_payments.php @@ -211,6 +211,8 @@ function can_process() set_focus('discount'); return false; } + if (!db_has_currency_rates(get_customer_currency($_POST['customer_id']), $_POST['DateBanked'], true)) + return false; $_SESSION['alloc']->amount = input_num('amount');