X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=purchasing%2Fpo_entry_items.php;h=53bf85e35d79372f9da723733ddd970a706528ef;hb=7e830126b96477e969fe3b48d9fc0e78f6c1fe00;hp=388eb772158c7449dee682d35dfc5b0d8e91705c;hpb=9a98bb3bc7a94f1a8e47f8dab45a87c8b4212080;p=fa-stable.git diff --git a/purchasing/po_entry_items.php b/purchasing/po_entry_items.php index 388eb772..53bf85e3 100644 --- a/purchasing/po_entry_items.php +++ b/purchasing/po_entry_items.php @@ -399,7 +399,13 @@ function can_commit() display_error (_("The order cannot be placed because there are no lines entered on this order.")); return false; } - + if (floatcmp(input_num('prep_amount'), $_SESSION['PO']->get_trans_total()) > 0) + { + display_error(_("Required prepayment is greater than total invoice value.")); + set_focus('prep_amount'); + return false; + } + return true; }