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:
d234b87
)
Fixed debit/credit entry check.
author
Janusz Dobrowolski
<janusz@frontaccounting.eu>
Thu, 27 Mar 2008 14:17:33 +0000
(14:17 +0000)
committer
Janusz Dobrowolski
<janusz@frontaccounting.eu>
Thu, 27 Mar 2008 14:17:33 +0000
(14:17 +0000)
gl/gl_journal.php
patch
|
blob
|
history
diff --git
a/gl/gl_journal.php
b/gl/gl_journal.php
index 31a4da95d3ec962aa6293c5224a8be74e00adee4..e6f1bcc6b0db243d615090de2e3e27e52a551d59 100644
(file)
--- a/
gl/gl_journal.php
+++ b/
gl/gl_journal.php
@@
-137,8
+137,7
@@
function check_item_data()
return false;
}
-// if (!(!strlen($_POST['AmountDebit']) ^ !strlen($_POST['AmountCredit'])))
- if (input_num('AmountDebit')!=0 && input_num('AmountCredit')!=0)
+ if (!(input_num('AmountDebit')!=0 ^ input_num('AmountCredit')!=0) )
{
display_error(_("You must enter either a debit amount or a credit amount."));
return false;