Merge pull request #1700 from SevanNerse/master
revert of c78a5a0a4ea085321ee2513ac1c4e7ea691895b1
This commit is contained in:
commit
dc4797d10f
@ -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)
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user