diff --git a/app/Http/Controllers/Expenses/Payments.php b/app/Http/Controllers/Expenses/Payments.php index c296aabd9..11d777408 100644 --- a/app/Http/Controllers/Expenses/Payments.php +++ b/app/Http/Controllers/Expenses/Payments.php @@ -24,7 +24,7 @@ class Payments extends Controller */ public function index() { - $payments = Payment::with(['vendor', 'account', 'category'])->collect(['paid_at'=> 'desc']); + $payments = Payment::with(['vendor', 'account', 'category'])->isNotTransfer()->collect(['paid_at'=> 'desc']); $vendors = collect(Vendor::enabled()->pluck('name', 'id')) ->prepend(trans('general.all_type', ['type' => trans_choice('general.vendors', 2)]), ''); diff --git a/app/Http/Controllers/Incomes/Revenues.php b/app/Http/Controllers/Incomes/Revenues.php index e02c38c33..8a4d8d736 100644 --- a/app/Http/Controllers/Incomes/Revenues.php +++ b/app/Http/Controllers/Incomes/Revenues.php @@ -26,7 +26,7 @@ class Revenues extends Controller */ public function index() { - $revenues = Revenue::with(['account', 'category', 'customer'])->collect(['paid_at'=> 'desc']); + $revenues = Revenue::with(['account', 'category', 'customer'])->isNotTransfer()->collect(['paid_at'=> 'desc']); $customers = collect(Customer::enabled()->pluck('name', 'id')) ->prepend(trans('general.all_type', ['type' => trans_choice('general.customers', 2)]), '');