From 460545882c3e53386c1459332c67d04802ca0a9e Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 15 Oct 2020 08:25:40 +1100 Subject: [PATCH] Additional fields for company model --- app/Models/Company.php | 3 +++ app/Transformers/CompanyTransformer.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/app/Models/Company.php b/app/Models/Company.php index 176c6139a6..9f149f806a 100644 --- a/app/Models/Company.php +++ b/app/Models/Company.php @@ -85,6 +85,9 @@ class Company extends BaseModel protected $presenter = \App\Models\Presenters\CompanyPresenter::class; protected $fillable = [ + 'mark_expenses_invoiceable', + 'mark_expenses_paid', + 'use_credits_payment', 'enabled_item_tax_rates', 'fill_products', 'industry_id', diff --git a/app/Transformers/CompanyTransformer.php b/app/Transformers/CompanyTransformer.php index c935afef37..51315c0e7b 100644 --- a/app/Transformers/CompanyTransformer.php +++ b/app/Transformers/CompanyTransformer.php @@ -142,6 +142,9 @@ class CompanyTransformer extends EntityTransformer 'client_can_register' => (bool) $company->client_can_register, 'is_large' => (bool) $company->is_large, 'enable_shop_api' => (bool) $company->enable_shop_api, + 'mark_expenses_invoiceable'=> (bool) $company->mark_expenses_invoiceable, + 'mark_expenses_paid' => (bool) $company->mark_expenses_paid, + 'use_credits_payment' => (string) $company->use_credits_payment, ]; }