mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Merge pull request #4166 from turbo124/v2
Additional fields for company model.
This commit is contained in:
commit
4ca112e61e
@ -85,6 +85,9 @@ class Company extends BaseModel
|
|||||||
protected $presenter = \App\Models\Presenters\CompanyPresenter::class;
|
protected $presenter = \App\Models\Presenters\CompanyPresenter::class;
|
||||||
|
|
||||||
protected $fillable = [
|
protected $fillable = [
|
||||||
|
'mark_expenses_invoiceable',
|
||||||
|
'mark_expenses_paid',
|
||||||
|
'use_credits_payment',
|
||||||
'enabled_item_tax_rates',
|
'enabled_item_tax_rates',
|
||||||
'fill_products',
|
'fill_products',
|
||||||
'industry_id',
|
'industry_id',
|
||||||
|
@ -142,6 +142,9 @@ class CompanyTransformer extends EntityTransformer
|
|||||||
'client_can_register' => (bool) $company->client_can_register,
|
'client_can_register' => (bool) $company->client_can_register,
|
||||||
'is_large' => (bool) $company->is_large,
|
'is_large' => (bool) $company->is_large,
|
||||||
'enable_shop_api' => (bool) $company->enable_shop_api,
|
'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,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,6 +21,13 @@ class ProjectIdsToEntities extends Migration
|
|||||||
$table->longText('fields')->change();
|
$table->longText('fields')->change();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Schema::table('gateways', function (Blueprint $table) {
|
||||||
|
$table->boolean('mark_expenses_invoiceable')->default(0);
|
||||||
|
$table->boolean('mark_expenses_paid')->default(0);
|
||||||
|
$table->enum('use_credits_payment', ['always', 'off', 'optin'])->nullable();
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user