projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Direct posting to GL accountswith more than one related tax type forbidden.
[fa-stable.git]
/
gl
/
gl_journal.php
diff --git
a/gl/gl_journal.php
b/gl/gl_journal.php
index 8d2853348a85e80cc339dbb635c7f78a77e15a83..77ba76b4ee1b4ba7761f90cf1264bf8772dd2fdf 100644
(file)
--- a/
gl/gl_journal.php
+++ b/
gl/gl_journal.php
@@
-91,7
+91,6
@@
if (isset($_POST['Process']))
$input_error = 1;
}
$input_error = 1;
}
-
if (!is_date($_POST['date_']))
{
display_error(_("The entered date is invalid."));
if (!is_date($_POST['date_']))
{
display_error(_("The entered date is invalid."));
@@
-169,7
+168,12
@@
function check_item_data()
set_focus('AmountCredit');
return false;
}
set_focus('AmountCredit');
return false;
}
-
+
+ if (!is_tax_gl_unique(get_post('code_id'))) {
+ display_error(_("Cannot post to GL account used by more than one tax type."));
+ set_focus('code_id');
+ return false;
+ }
if ($_SESSION["wa_current_user"]->access != 2 && is_bank_account($_POST['code_id']))
{
if ($_SESSION["wa_current_user"]->access != 2 && is_bank_account($_POST['code_id']))
{