New Company Option for showing both Short Names and Names in Customer/Supplier lists.
[fa-stable.git] / sql / alter2.4.php
index c51fbb2392e03aea906a419eb20efffc56916cb5..5e9b83db0df12f7b06370fbff92672dcc70ef776 100644 (file)
@@ -74,6 +74,9 @@ class fa2_4 extends fa_patch {
                if (get_company_pref('company_logo_report') === null) { // available from 2.4.2, during updates
                        set_company_pref('company_logo_report', 'setup.company', 'tinyint', 1, '0');
                }
+               if (get_company_pref('shortname_name_in_list') === null) { // available from 2.4.2, during updates
+                       set_company_pref('shortname_name_in_list', 'setup.company', 'tinyint', 1, '0');
+               }
 
                $result = $this->update_workorders()  && $this->update_grn_rates() && $this->switch_database_to_utf($pref);