Merge branch 'master' of github.com:akaunting/akaunting
This commit is contained in:
commit
2c673f9ed6
@ -17,7 +17,7 @@ class DocumentHistory extends Model
|
|||||||
|
|
||||||
public function document()
|
public function document()
|
||||||
{
|
{
|
||||||
return $this->belongsTo('App\Models\Document\Document')->where('type', $this->type);
|
return $this->belongsTo('App\Models\Document\Document');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function scopeType(Builder $query, string $type)
|
public function scopeType(Builder $query, string $type)
|
||||||
|
@ -61,7 +61,7 @@ class DocumentItem extends Model
|
|||||||
|
|
||||||
public function document()
|
public function document()
|
||||||
{
|
{
|
||||||
return $this->belongsTo('App\Models\Document\Document')->where('type', $this->type);
|
return $this->belongsTo('App\Models\Document\Document');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function item()
|
public function item()
|
||||||
|
@ -27,7 +27,7 @@ class DocumentItemTax extends Model
|
|||||||
|
|
||||||
public function document()
|
public function document()
|
||||||
{
|
{
|
||||||
return $this->belongsTo('App\Models\Document\Document')->where('type', $this->type);
|
return $this->belongsTo('App\Models\Document\Document');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function item()
|
public function item()
|
||||||
|
@ -29,7 +29,7 @@ class DocumentTotal extends Model
|
|||||||
|
|
||||||
public function document()
|
public function document()
|
||||||
{
|
{
|
||||||
return $this->belongsTo('App\Models\Document\Document')->where('type', $this->type);
|
return $this->belongsTo('App\Models\Document\Document');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function scopeType(Builder $query, string $type)
|
public function scopeType(Builder $query, string $type)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user