projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cd59d7
)
4796: Entering customer payment with a bank charge equal to the total amount results...
author
Joe Hunt
<joe.hunt.consulting@gmail.com>
Wed, 19 Dec 2018 10:52:47 +0000
(11:52 +0100)
committer
Joe Hunt
<joe.hunt.consulting@gmail.com>
Wed, 19 Dec 2018 10:52:47 +0000
(11:52 +0100)
sales/customer_payments.php
patch
|
blob
|
history
diff --git
a/sales/customer_payments.php
b/sales/customer_payments.php
index 366386add98cbaa17a20282d2db8c7264f19d2a9..592d0e7f903c95986eb607f7aa71b29aa82d4893 100644
(file)
--- a/
sales/customer_payments.php
+++ b/
sales/customer_payments.php
@@
-174,7
+174,7
@@
function can_process()
return false;
}
- if (isset($_POST['charge']) &&
!check_num('charge', 0
)) {
+ if (isset($_POST['charge']) &&
(!check_num('charge', 0) || $_POST['charge'] == $_POST['amount']
)) {
display_error(_("The entered amount is invalid or negative and cannot be processed."));
set_focus('charge');
return false;