Add Income/Expense type for document transactions

This commit is contained in:
Burak Çakırel
2020-12-25 18:19:16 +03:00
parent 3d1522f545
commit e27ccfa46c
11 changed files with 20 additions and 7 deletions

View File

@ -23,7 +23,7 @@ class Document implements Scope
return;
}
$type = request()->get('type') ?: Str::singular(request()->segment(2, ''));
$type = Str::singular(request()->segment(2, ''));
// Apply document scope
$builder->where($model->getTable() . '.type', '=', $type);