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:
parent
944bd1207c
commit
460545882c
@ -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',
|
||||
|
@ -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,
|
||||
];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user