Bug 0001669: get_exchange_rate not raising error
[fa-stable.git] / sales / sales_order_entry.php
index af29a1dda56653804117e5148152663d92069c2f..a49ff9af4f9b9b1647d4ab1515d73293708f88e0 100644 (file)
@@ -404,6 +404,8 @@ function can_process() {
                set_focus('ref');
                return false;
        }
+       if (!db_has_currency_rates($_SESSION['Items']->customer_currency, $_POST['OrderDate']))
+               return false;
        
        if ($_SESSION['Items']->get_items_total() < 0) {
                display_error("Invoice total amount cannot be less than zero.");