This commit is contained in:
denisdulici
2017-12-11 22:37:05 +03:00
parent 8ca239b3b9
commit 3695dac363
5 changed files with 5 additions and 5 deletions

View File

@ -24,7 +24,7 @@ class Payments extends Controller
*/
public function index()
{
$payments = Payment::with(['vendor', 'account', 'category'])->collect();
$payments = Payment::with(['vendor', 'account', 'category'])->collect(['paid_at'=> 'desc']);
$vendors = collect(Vendor::enabled()->pluck('name', 'id'))
->prepend(trans('general.all_type', ['type' => trans_choice('general.vendors', 2)]), '');