diff --git a/app/Http/Controllers/Migration/StepsController.php b/app/Http/Controllers/Migration/StepsController.php index 1357a7d12250..8b8ffc7023bd 100644 --- a/app/Http/Controllers/Migration/StepsController.php +++ b/app/Http/Controllers/Migration/StepsController.php @@ -111,85 +111,6 @@ class StepsController extends BaseController //'uses_inclusive_taxes' => $this->account->inclusive_taxes, 'created_at' => $this->account->created_at ? $this->account->created_at->toDateString() : null, 'updated_at' => $this->account->updated_at ? $this->account->updated_at->toDateString() : null, - 'settings' => $this->getCompanySettings(), - ]; - } - - public function getCompanySettings() - { - // In v1: custom_invoice_taxes1 & custom_invoice_taxes2, v2: 'invoice_taxes'. What do to with this? - // V1: invoice_number_prefix, v2: invoice_number_pattern.. same with quote_number, client_number, - - return [ - 'timezone_id' => $this->account->timezone_id, - 'date_format_id' => $this->account->date_format_id, - 'currency_id' => $this->account->currency_id, - 'name' => $this->account->name, - 'address1' => $this->account->address1, - 'address2' => $this->account->address2, - 'city' => $this->account->city, - 'state' => $this->account->state, - 'postal_code' => $this->account->postal_code, - 'country_id' => $this->account->country_id, - 'invoice_terms' => $this->account->invoice_terms, - 'enabled_item_tax_rates' => $this->account->invoice_item_taxes, - 'invoice_design_id' => $this->account->invoice_design_id, - 'phone' => $this->account->work_phone, - 'email' => $this->account->work_email, - 'language_id' => $this->account->language_id, - 'custom_value1' => $this->account->custom_value1, - 'custom_value2' => $this->account->custom_value2, - 'hide_paid_to_date' => $this->account->hide_paid_to_date, - 'vat_number' => $this->account->vat_number, - 'shared_invoice_quote_counter' => $this->account->share_counter, // @verify, - 'id_number' => $this->account->id_number, - 'invoice_footer' => $this->account->invoice_footer, - 'pdf_email_attachment' => $this->account->pdf_email_attachment, - 'font_size' => $this->account->font_size, - 'invoice_labels' => $this->account->invoice_labels, - 'military_time' => $this->account->military_time, - 'invoice_number_pattern' => $this->account->invoice_number_pattern, - 'quote_number_pattern' => $this->account->quote_number_pattern, - 'quote_terms' => $this->account->quote_terms, - 'website' => $this->account->website, - 'auto_convert_quote' => $this->account->auto_convert_quote, - 'all_pages_footer' => $this->account->all_pages_footer, - 'all_pages_header' => $this->account->all_pages_header, - 'show_currency_code' => $this->account->show_currency_code, - 'enable_client_portal_password' => $this->account->enable_portal_password, - 'send_portal_password' => $this->account->send_portal_password, - 'recurring_number_prefix' => $this->account->recurring_invoice_number_prefix, // @verify - 'enable_client_portal' => $this->account->enable_client_portal, - 'invoice_fields' => $this->account->invoice_fields, - 'company_logo' => $this->account->logo, - 'embed_documents' => $this->account->invoice_embed_documents, - 'document_email_attachment' => $this->account->document_email_attachment, - 'enable_client_portal_dashboard' => $this->account->enable_client_portal_dashboard, - 'page_size' => $this->account->page_size, - 'show_accept_invoice_terms' => $this->account->show_accept_invoice_terms, - 'show_accept_quote_terms' => $this->account->show_accept_quote_terms, - 'require_invoice_signature' => $this->account->require_invoice_signature, - 'require_quote_signature' => $this->account->require_quote_signature, - 'client_number_counter' => $this->account->client_number_counter, - 'client_number_pattern' => $this->account->client_number_pattern, - 'payment_terms' => $this->account->payment_terms, - 'reset_counter_frequency_id' => $this->account->reset_counter_frequency_id, - 'payment_type_id' => $this->account->payment_type_id, - 'reset_counter_date' => $this->account->reset_counter_date, - 'tax_name1' => $this->account->tax_name1, - 'tax_rate1' => $this->account->tax_rate1, - 'tax_name2' => $this->account->tax_name2, - 'tax_rate2' => $this->account->tax_rate2, - 'quote_design_id' => $this->account->quote_design_id, - 'credit_number_counter' => $this->account->credit_number_counter, - 'credit_number_pattern' => $this->account->credit_number_pattern, - 'default_task_rate' => $this->account->task_rate, - 'inclusive_taxes' => $this->account->inclusive_taxes, - 'signature_on_pdf' => $this->account->signature_on_pdf, - 'ubl_email_attachment' => $this->account->ubl_email_attachment, - 'auto_archive_invoice' => $this->account->auto_archive_invoice, - 'auto_archive_quote' => $this->account->auto_archive_quote, - 'auto_email_invoice' => $this->account->auto_email_invoice, ]; }