Fix not showing bills' transactions
This commit is contained in:
parent
6822763d3c
commit
273b73cf73
@ -131,7 +131,8 @@ class Document extends Model
|
|||||||
|
|
||||||
public function transactions()
|
public function transactions()
|
||||||
{
|
{
|
||||||
return $this->hasMany('App\Models\Banking\Transaction', 'document_id')->where('type', 'income');
|
return $this->hasMany('App\Models\Banking\Transaction', 'document_id')
|
||||||
|
->where('type', config('type.' . $this->type . '.transaction_type'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function totals_sorted()
|
public function totals_sorted()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user