X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=admin%2Fgl_setup.php;h=5f66fcc7b0279b4616acd5b34edb53c508dfb751;hb=2a721693c8b5d1ebf55b51e4ed9396a29a1147b2;hp=1a17092dfeb9cc67d17dc3ce9ae414b9b9f3d705;hpb=9dc10cd2d4d1bceb549171976dfd7e0b4187a72b;p=fa-stable.git diff --git a/admin/gl_setup.php b/admin/gl_setup.php index 1a17092d..5f66fcc7 100644 --- a/admin/gl_setup.php +++ b/admin/gl_setup.php @@ -47,9 +47,9 @@ 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").' '.$n); + display_error(_("Before GRN Clearing Account can be changed all GRNs have to be invoiced")); $_POST['grn_clearing_act'] = $grn_act; set_focus('grn_clearing_account'); return false; @@ -84,7 +84,7 @@ start_outer_table(TABLESTYLE2); table_section(1); -if (get_company_pref('grn_clearing_act') === null) { // available form 2.3.1, can be not defined on pre-2.4 installations +if (get_company_pref('grn_clearing_act') === null) { // available from 2.3.1, can be not defined on pre-2.4 installations set_company_pref('grn_clearing_act', 'glsetup.purchase', 'varchar', 15, 0); refresh_sys_prefs(); }