Revised the journal, the ledger, the income and expenses log, and the search result to show the last page first as the default upon pagination.

This commit is contained in:
2023-03-18 19:00:56 +08:00
parent 34f63c1cdf
commit 61c111db69
4 changed files with 4 additions and 4 deletions

View File

@ -209,7 +209,7 @@ class Journal(BaseReport):
:return: The report as HTML.
"""
pagination: Pagination[JournalEntry] \
= Pagination[JournalEntry](self.__entries)
= Pagination[JournalEntry](self.__entries, is_reversed=True)
params: PageParams = PageParams(period=self.__period,
pagination=pagination,
entries=pagination.list)