+ if (get_company_pref('default_quote_valid_days') === null) { // new in 2.3.23 installations
+ set_company_pref('default_quote_valid_days', 'glsetup.sales', 'smallint', 6, 30);
+ }
+ if (get_company_pref('bcc_email') === null) { // available from 2.3.14, can be not defined on pre-2.4 installations
+ set_company_pref('bcc_email', 'setup.company', 'varchar', 100, '');
+ }
+ if (get_company_pref('alternative_tax_include_on_docs') === null) { // available from 2.3.14, can be not defined on pre-2.4 installations
+ set_company_pref('alternative_tax_include_on_docs', 'setup.company', 'tinyint', 1, '0');
+ }
+ if (get_company_pref('suppress_tax_rates') === null) { // available from 2.3.14, can be not defined on pre-2.4 installations
+ set_company_pref('suppress_tax_rates', 'setup.company', 'tinyint', 1, '0');
+ }
+ 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('print_dialog_direct') === null) { // available from 2.4.5, during updates
+ set_company_pref('print_dialog_direct', 'setup.company', 'tinyint', 1, '0');
+ }
+ if (get_company_pref('barcodes_on_stock') === null) { // available from 2.4.3, during updates
+ set_company_pref('barcodes_on_stock', 'setup.company', 'tinyint', 1, '0');
+ }
+ if (get_company_pref('ref_no_auto_increase') === null) { // available from 2.4.4, during updates
+ set_company_pref('ref_no_auto_increase', 'setup.company', 'tinyint', 1, '0');