Merge pull request #1700 from SevanNerse/master

revert of c78a5a0a4ea085321ee2513ac1c4e7ea691895b1
This commit is contained in:
Cüneyt Şentürk 2020-12-28 15:33:34 +03:00 committed by GitHub
commit dc4797d10f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)