added more scopes
This commit is contained in:
@ -78,7 +78,7 @@ class Vendors extends Controller
|
||||
}
|
||||
|
||||
// Handle payments
|
||||
$transactions = Transaction::where('contact_id', $vendor->id)->type('expense')->get();
|
||||
$transactions = Transaction::where('contact_id', $vendor->id)->expense()->get();
|
||||
|
||||
$counts['transactions'] = $transactions->count();
|
||||
|
||||
|
Reference in New Issue
Block a user