Bug 0001669: get_exchange_rate not raising error
[fa-stable.git] / purchasing / supplier_payment.php
index ed8f5a089a9c50302c9e7614358e2e68b31fe496..28f890a0fcc04a25cd8d23e03c4dd7e70f359fe8 100644 (file)
@@ -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"]))