X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sql%2Falter2.4.php;h=c51fbb2392e03aea906a419eb20efffc56916cb5;hb=83e3bca480ef8c33cf9310d04d5831ed2922bcd8;hp=e2cbf7c9f6cb80402f23525f2bfb6807e7b93c35;hpb=785e1fd17e52c72fe560b7ef1b3390e0518b8716;p=fa-stable.git diff --git a/sql/alter2.4.php b/sql/alter2.4.php index e2cbf7c9..c51fbb23 100644 --- a/sql/alter2.4.php +++ b/sql/alter2.4.php @@ -20,7 +20,7 @@ class fa2_4 extends fa_patch { function fa2_4() { parent::fa_patch(); - $this->description = _('Upgrade from version 2.3 to 2.4RC1'); + $this->description = _('Upgrade from version 2.3 to 2.4'); } /* @@ -71,6 +71,9 @@ class fa2_4 extends fa_patch { 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'); + } $result = $this->update_workorders() && $this->update_grn_rates() && $this->switch_database_to_utf($pref); @@ -108,7 +111,7 @@ class fa2_4 extends fa_patch { 'tax_algorithm', 'grn_clearing_act', 'default_receival_required', 'default_quote_valid_days', 'no_zero_lines_amount', 'show_po_item_codes', 'accounts_alpha', 'loc_notification', 'print_invoice_no', 'allow_negative_prices', 'print_item_images_on_quote', - 'bcc_email', 'alternative_tax_include_on_docs', 'suppress_tax_rates')"); + 'bcc_email', 'alternative_tax_include_on_docs', 'suppress_tax_rates', 'company_logo_report')"); } function update_workorders()