fixed reconciliations list page broken deleted account ( #8669n0ywu )
This commit is contained in:
@ -65,6 +65,11 @@ class Account extends Model
|
||||
return $this->hasMany('App\Models\Banking\Transaction');
|
||||
}
|
||||
|
||||
public function reconciliations()
|
||||
{
|
||||
return $this->hasMany('App\Models\Banking\Reconciliation');
|
||||
}
|
||||
|
||||
public function scopeName($query, $name)
|
||||
{
|
||||
return $query->where('name', '=', $name);
|
||||
|
@ -41,7 +41,7 @@ class Reconciliation extends Model
|
||||
|
||||
public function account()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Banking\Account');
|
||||
return $this->belongsTo('App\Models\Banking\Account')->withDefault(['name' => trans('general.na')]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user