X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sql%2Falter2.4.php;h=481ea817756507284cb1c66328abc1402b61b21f;hb=2948486e17c38fa2d9d857ed573a85c2e44aeee9;hp=0a2584d346a77ebd6f7dc3294959224d081e7f53;hpb=3faff3b471c0953bc1d11a6c00308779787a55f2;p=fa-stable.git diff --git a/sql/alter2.4.php b/sql/alter2.4.php index 0a2584d3..481ea817 100644 --- a/sql/alter2.4.php +++ b/sql/alter2.4.php @@ -32,54 +32,20 @@ class fa2_4 { if (get_company_pref('grn_clearing_act') === null) { // available form 2.3.1, can be not defined on pre-2.4 installations set_company_pref('grn_clearing_act', 'glsetup.purchase', 'varchar', 15, 0); } - if (get_company_pref('default_receival_required') === null) { // new in 2.4 installations - set_company_pref('default_receival_required', 'glsetup.purchase', 'smallint', 6, 10); - } 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('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(); - } 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, ''); - refresh_sys_prefs(); } 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'); - refresh_sys_prefs(); } 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'); - refresh_sys_prefs(); } -$result = $this->update_workorders() && $this->update_grn_rates() && $this->switch_database_to_utf($pref); + $result = $this->update_workorders() && $this->update_grn_rates() && $this->switch_database_to_utf($pref); if ($result) $result = $this->do_cleanup();