fixed recurring
This commit is contained in:
parent
0f295d4979
commit
5b3688aaac
@ -133,7 +133,7 @@ class Transaction extends Model
|
||||
|
||||
public function parent()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Banking\Transaction', 'parent_id');
|
||||
return $this->belongsTo('App\Models\Banking\Transaction', 'parent_id')->isRecurring();
|
||||
}
|
||||
|
||||
public function recurring()
|
||||
|
@ -51,7 +51,7 @@ class Recurring extends Model
|
||||
*/
|
||||
public function recurable()
|
||||
{
|
||||
return $this->morphTo();
|
||||
return $this->morphTo()->isRecurring();
|
||||
}
|
||||
|
||||
public function scopeActive(Builder $query): Builder
|
||||
|
@ -136,7 +136,7 @@ class Document extends Model
|
||||
|
||||
public function parent()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Document\Document', 'parent_id');
|
||||
return $this->belongsTo('App\Models\Document\Document', 'parent_id')->isRecurring();
|
||||
}
|
||||
|
||||
public function payments()
|
||||
|
Loading…
x
Reference in New Issue
Block a user