Fixes for appends on tax_rates model
This commit is contained in:
parent
cc53c697bd
commit
42b3272920
3 changed files with 5 additions and 6 deletions
|
|
@ -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…
Add table
Reference in a new issue