Merge branch 'master' of github.com:akaunting/akaunting

This commit is contained in:
Cüneyt Şentürk 2020-12-28 16:21:19 +03:00
commit 2c673f9ed6
4 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ class DocumentHistory extends Model
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)

View File

@ -61,7 +61,7 @@ class DocumentItem extends Model
public function document()
{
return $this->belongsTo('App\Models\Document\Document')->where('type', $this->type);
return $this->belongsTo('App\Models\Document\Document');
}
public function item()

View File

@ -27,7 +27,7 @@ class DocumentItemTax extends Model
public function document()
{
return $this->belongsTo('App\Models\Document\Document')->where('type', $this->type);
return $this->belongsTo('App\Models\Document\Document');
}
public function item()

View File

@ -29,7 +29,7 @@ class DocumentTotal extends Model
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)