mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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()
|
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()
|
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()
|
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()
|
public function group_settings()
|
||||||
{
|
{
|
||||||
return $this->hasMany(GroupSetting::class);
|
return $this->hasMany(GroupSetting::class)->withTrashed();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function timezone()
|
public function timezone()
|
||||||
|
@ -24,7 +24,7 @@ class TaxRate extends BaseModel
|
|||||||
'rate',
|
'rate',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $appends = ['tax_rate_id'];
|
// protected $appends = ['tax_rate_id'];
|
||||||
|
|
||||||
public function getEntityType()
|
public function getEntityType()
|
||||||
{
|
{
|
||||||
|
@ -53,7 +53,6 @@ class CompanyTransformer extends EntityTransformer
|
|||||||
*/
|
*/
|
||||||
protected $defaultIncludes = [
|
protected $defaultIncludes = [
|
||||||
'documents',
|
'documents',
|
||||||
'tax_rates',
|
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user