revert of c78a5a0a4ea085321ee2513ac1c4e7ea691895b1
This commit is contained in:
parent
f8d0075f79
commit
8f19f0c24f
@ -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