Make sure the "classic" page uses the transformer as well.

This commit is contained in:
James Cole
2018-02-06 18:11:33 +01:00
parent 9a0672e359
commit c4507a7f75
5 changed files with 78 additions and 43 deletions

View File

@@ -32,6 +32,7 @@ use FireflyIII\Models\TransactionType;
use FireflyIII\Support\CacheProperties;
use FireflyIII\User;
use Illuminate\Database\Query\JoinClause;
use Illuminate\Pagination\LengthAwarePaginator;
use Illuminate\Support\Collection;
use Log;
use Navigation;
@@ -269,6 +270,16 @@ class BillRepository implements BillRepositoryInterface
return $avg;
}
/**
* @param int $size
*
* @return LengthAwarePaginator
*/
public function getPaginator(int $size): LengthAwarePaginator
{
return $this->user->bills()->paginate($size);
}
/**
* The "paid dates" list is a list of dates of transaction journals that are linked to this bill.
*