X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fpo_entry_items.php;h=d14769b10af55340e69188cbae0a100cecec03d9;hb=6a12518d87e341c16dd2e2898f36e74320369d71;hp=4a3101dc7bf33b645f37c0f261470507f05752c5;hpb=c00e6c0f28b8924b088c26814cc303638e8d093a;p=fa-stable.git diff --git a/purchasing/po_entry_items.php b/purchasing/po_entry_items.php index 4a3101dc..d14769b1 100644 --- a/purchasing/po_entry_items.php +++ b/purchasing/po_entry_items.php @@ -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."));