From: Janusz Dobrowolski Date: Sat, 14 May 2011 07:44:20 +0000 (+0200) Subject: Fixed problem with GRN clearing account initialization in GL setup. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=70039ec9b5cdf2870715245c5347152152f53a8c;p=textcart.git Fixed problem with GRN clearing account initialization in GL setup. --- diff --git a/admin/gl_setup.php b/admin/gl_setup.php index 79b84dd..1ef3e40 100644 --- 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;