Fixed problem with GRN clearing account initialization in GL setup.
authorJanusz Dobrowolski <janusz@frontaccouting.eu>
Sat, 14 May 2011 07:44:20 +0000 (09:44 +0200)
committerJanusz Dobrowolski <janusz@frontaccouting.eu>
Sat, 14 May 2011 07:44:20 +0000 (09:44 +0200)
admin/gl_setup.php

index 79b84ddf49f44af17e675c6d7e8753f837fde3dd..1ef3e40e06c3272f150606f0907dee47161b4604 100644 (file)
@@ -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;