projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0000593,0001093: Prepayments made against orders implemented.
[fa-stable.git]
/
purchasing
/
po_entry_items.php
diff --git
a/purchasing/po_entry_items.php
b/purchasing/po_entry_items.php
index 388eb772158c7449dee682d35dfc5b0d8e91705c..53bf85e35d79372f9da723733ddd970a706528ef 100644
(file)
--- 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;
}
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;
}
return true;
}