Bug 0001669: get_exchange_rate not raising error
[fa-stable.git] / purchasing / po_entry_items.php
index 4a3101dc7bf33b645f37c0f261470507f05752c5..d14769b10af55340e69188cbae0a100cecec03d9 100644 (file)
@@ -391,7 +391,8 @@ function can_commit()
                set_focus('StkLocation');
                return false;
        } 
-       
+       if (!db_has_currency_rates($_SESSION['PO']->curr_code, $_POST['OrderDate']))
+               return false;
        if ($_SESSION['PO']->order_has_items() == false)
        {
        display_error (_("The order cannot be placed because there are no lines entered on this order."));