projects
/
textcart.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb7431b
)
Fixed problem with GRN clearing account initialization in GL setup.
author
Janusz Dobrowolski
<janusz@frontaccouting.eu>
Sat, 14 May 2011 07:44:20 +0000
(09:44 +0200)
committer
Janusz Dobrowolski
<janusz@frontaccouting.eu>
Sat, 14 May 2011 07:44:20 +0000
(09:44 +0200)
admin/gl_setup.php
patch
|
blob
|
history
diff --git
a/admin/gl_setup.php
b/admin/gl_setup.php
index 79b84ddf49f44af17e675c6d7e8753f837fde3dd..1ef3e40e06c3272f150606f0907dee47161b4604 100644
(file)
--- a/
admin/gl_setup.php
+++ b/
admin/gl_setup.php
@@
-47,7
+47,7
@@
function can_process()
}
$grn_act = get_company_pref('grn_clearing_act');
- if (
get_post('grn_clearing_act') != $grn_act
&& db_num_rows(get_grn_items(0, '', true)))
+ if (
(get_post('grn_clearing_act',0) != $grn_act)
&& db_num_rows(get_grn_items(0, '', true)))
{
display_error(_("Before GRN Clearing Account can be changed all GRNs have to be invoiced"));
$_POST['grn_clearing_act'] = $grn_act;