1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Additional fields for company model

This commit is contained in:
David Bomba 2020-10-15 08:25:40 +11:00
parent 944bd1207c
commit 460545882c
2 changed files with 6 additions and 0 deletions

View File

@ -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',

View File

@ -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,
];
}