mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-11 05:32:39 +01:00
Merge pull request #6617 from turbo124/v5-develop
Fixes for appends on tax_rates model
This commit is contained in:
commit
d974505ed0
@ -281,7 +281,7 @@ class Company extends BaseModel
|
||||
*/
|
||||
public function company_gateways()
|
||||
{
|
||||
return $this->hasMany(CompanyGateway::class);
|
||||
return $this->hasMany(CompanyGateway::class)->withTrashed();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -289,7 +289,7 @@ class Company extends BaseModel
|
||||
*/
|
||||
public function tax_rates()
|
||||
{
|
||||
return $this->hasMany(TaxRate::class);
|
||||
return $this->hasMany(TaxRate::class)->withTrashed();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -297,7 +297,7 @@ class Company extends BaseModel
|
||||
*/
|
||||
public function products()
|
||||
{
|
||||
return $this->hasMany(Product::class);
|
||||
return $this->hasMany(Product::class)->withTrashed();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -311,7 +311,7 @@ class Company extends BaseModel
|
||||
|
||||
public function group_settings()
|
||||
{
|
||||
return $this->hasMany(GroupSetting::class);
|
||||
return $this->hasMany(GroupSetting::class)->withTrashed();
|
||||
}
|
||||
|
||||
public function timezone()
|
||||
|
@ -24,7 +24,7 @@ class TaxRate extends BaseModel
|
||||
'rate',
|
||||
];
|
||||
|
||||
protected $appends = ['tax_rate_id'];
|
||||
// protected $appends = ['tax_rate_id'];
|
||||
|
||||
public function getEntityType()
|
||||
{
|
||||
|
@ -53,7 +53,6 @@ class CompanyTransformer extends EntityTransformer
|
||||
*/
|
||||
protected $defaultIncludes = [
|
||||
'documents',
|
||||
'tax_rates',
|
||||
];
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user