diff --git a/app/Jobs/Common/CreateCompany.php b/app/Jobs/Common/CreateCompany.php index 45b90d9fd..d20adf8d2 100644 --- a/app/Jobs/Common/CreateCompany.php +++ b/app/Jobs/Common/CreateCompany.php @@ -92,6 +92,8 @@ class CreateCompany extends Job setting()->set([ 'company.name' => $this->request->get('name'), 'company.email' => $this->request->get('email'), + 'company.tax_number' => $this->request->get('tax_number'), + 'company.phone' => $this->request->get('phone'), 'company.address' => $this->request->get('address'), 'default.currency' => $this->request->get('currency'), 'default.locale' => $this->request->get('locale', 'en-GB'), diff --git a/app/Jobs/Common/UpdateCompany.php b/app/Jobs/Common/UpdateCompany.php index d4137ad6e..901c1036c 100644 --- a/app/Jobs/Common/UpdateCompany.php +++ b/app/Jobs/Common/UpdateCompany.php @@ -58,6 +58,14 @@ class UpdateCompany extends Job setting()->set('company.email', $this->request->get('email')); } + if ($this->request->has('tax_number')) { + setting()->set('company.tax_number', $this->request->get('tax_number')); + } + + if ($this->request->has('phone')) { + setting()->set('company.phone', $this->request->get('phone')); + } + if ($this->request->has('address')) { setting()->set('company.address', $this->request->get('address')); } diff --git a/resources/views/common/companies/create.blade.php b/resources/views/common/companies/create.blade.php index 6603e37cd..eedae4fa7 100644 --- a/resources/views/common/companies/create.blade.php +++ b/resources/views/common/companies/create.blade.php @@ -25,6 +25,10 @@ {{ Form::selectGroup('locale', trans_choice('general.languages', 1), 'flag', language()->allowed(), setting('default.locale', config('app.locale', 'en-GB')), []) }} + {{ Form::textGroup('tax_number', trans('general.tax_number'), 'percent', [], setting('company.tax_number')) }} + + {{ Form::textGroup('phone', trans('settings.company.phone'), 'phone', [], setting('company.phone')) }} + {{ Form::textareaGroup('address', trans('general.address')) }} {{ Form::fileGroup('logo', trans('companies.logo'), '', ['dropzone-class' => 'form-file']) }} diff --git a/resources/views/common/companies/edit.blade.php b/resources/views/common/companies/edit.blade.php index ce7c31a18..18c0e3210 100644 --- a/resources/views/common/companies/edit.blade.php +++ b/resources/views/common/companies/edit.blade.php @@ -26,6 +26,10 @@ {{ Form::selectGroup('locale', trans_choice('general.languages', 1), 'flag', language()->allowed(), $company->locale ?? config('app.locale', 'en-GB'), []) }} + {{ Form::textGroup('tax_number', trans('general.tax_number'), 'percent', [], $company->tax_number) }} + + {{ Form::textGroup('phone', trans('settings.company.phone'), 'phone', [], $company->phone) }} + {{ Form::textareaGroup('address', trans('general.address')) }} {{ Form::fileGroup('logo', trans('companies.logo'), '', ['dropzone-class' => 'form-file']) }}