fixed total widgets

This commit is contained in:
Denis Duliçi
2021-01-23 23:29:22 +03:00
parent 9c0cc9ae87
commit c2299d2208
4 changed files with 4 additions and 5 deletions

View File

@ -132,8 +132,7 @@ class Document extends Model
public function transactions()
{
return $this->hasMany('App\Models\Banking\Transaction', 'document_id')
->where('type', config('type.' . $this->type . '.transaction_type'));
return $this->hasMany('App\Models\Banking\Transaction', 'document_id');
}
public function totals_sorted()