projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed balance_sheet field in account class to ctype and fixed class editing.
[fa-stable.git]
/
gl
/
gl_journal.php
diff --git
a/gl/gl_journal.php
b/gl/gl_journal.php
index 5bff91650ebf1dbb2f76297d16f3764acf54e3ec..3ce28e3aa4c91c8512fe0567ac202a2b42a7a4a7 100644
(file)
--- a/
gl/gl_journal.php
+++ b/
gl/gl_journal.php
@@
-232,7
+232,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']))
{