Merged all main trunk bugfixes up to release 2.0.5
[fa-stable.git] / gl / manage / gl_accounts.php
index 363c1bd2f41f7d0ab77cda2b1c9d65a9bcd8945f..2520d355cfd7e43038e023123e378dfa4bc07bcf 100644 (file)
@@ -70,9 +70,8 @@ if (isset($_POST['add']) || isset($_POST['update']))
                add_gl_account($_POST['account_code'], $_POST['account_name'], $_POST['account_type'], $_POST['account_code2'], $_POST['tax_code']);
                        $selected_account = $_POST['AccountList'] = $_POST['account_code'];
                        display_notification(_("New account has been added."));
-                       $Ajax->activate('_page_body');
                }
-
+               $Ajax->activate('_page_body');
        }
 } 
 
@@ -186,7 +185,7 @@ if (isset($_POST['delete']))
        {
                delete_gl_account($selected_account);
                $selected_account = $_POST['account_code'] = $_POST['AccountList'] = '';
-               display_notification("Selected account has been deleted");
+               display_notification(_("Selected account has been deleted"));
                $Ajax->activate('_page_body');
        }
 } 
@@ -236,7 +235,7 @@ text_row_ex(_("Account Name:"), 'account_name', 60);
 
 gl_account_types_list_row(_("Account Group:"), 'account_type', null);
 
-tax_types_list_row(_("Tax Type:"), 'tax_code', null, _('No Tax'));
+tax_groups_list_row(_("Tax Group:"), 'tax_code', null, _('No Tax'));
 
 end_table(1);