- if (get_company_pref('no_zero_lines_amount') === null) { // new in 2.4 installations
- set_company_pref('no_zero_lines_amount', 'glsetup.sales', 'tinyint', 1, '1');
- refresh_sys_prefs();
- }
- if (get_company_pref('show_po_item_codes') === null) { // new in 2.4 installations
- set_company_pref('show_po_item_codes', 'glsetup.purchase', 'tinyint', 1, '0');
- refresh_sys_prefs();
- }
- if (get_company_pref('accounts_alpha') === null) { // new in 2.4 installations
- set_company_pref('accounts_alpha', 'glsetup.general', 'tinyint', 1, '0');
- refresh_sys_prefs();
- }
- if (get_company_pref('loc_notification') === null) { // new in 2.4 installations
- set_company_pref('loc_notification', 'glsetup.inventory', 'tinyint', 1, '0');
- refresh_sys_prefs();
- }
- if (get_company_pref('print_invoice_no') === null) { // new in 2.4 installations
- set_company_pref('print_invoice_no', 'glsetup.sales', 'tinyint', 1, '0');
- refresh_sys_prefs();
- }
- if (get_company_pref('allow_negative_prices') === null) { // new in 2.4 installations
- set_company_pref('allow_negative_prices', 'glsetup.inventory', 'tinyint', 1, '1');
- refresh_sys_prefs();
- }
- if (get_company_pref('print_item_images_on_quote') === null) { // new in 2.4 installations
- set_company_pref('print_item_images_on_quote', 'glsetup.inventory', 'tinyint', 1, '0');
- refresh_sys_prefs();
- }