X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fsupplier_payment.php;h=28f890a0fcc04a25cd8d23e03c4dd7e70f359fe8;hb=6a12518d87e341c16dd2e2898f36e74320369d71;hp=ed8f5a089a9c50302c9e7614358e2e68b31fe496;hpb=c00e6c0f28b8924b088c26814cc303638e8d093a;p=fa-stable.git diff --git a/purchasing/supplier_payment.php b/purchasing/supplier_payment.php index ed8f5a08..28f890a0 100644 --- a/purchasing/supplier_payment.php +++ b/purchasing/supplier_payment.php @@ -210,6 +210,8 @@ function check_inputs() return false; } + if (!db_has_currency_rates(get_supplier_currency($_POST['supplier_id']), $_POST['DatePaid'], true)) + return false; $_SESSION['alloc']->amount = -input_num('amount'); if (isset($_POST["TotalNumberOfAllocs"]))