diff --git a/src/accounting/report/utils/report_chooser.py b/src/accounting/report/utils/report_chooser.py index 1ee61d6..6c5baa8 100644 --- a/src/accounting/report/utils/report_chooser.py +++ b/src/accounting/report/utils/report_chooser.py @@ -68,9 +68,9 @@ class ReportChooser: """The title of the current report.""" self.is_search: bool = active_report == ReportType.SEARCH """Whether the current report is the search page.""" - self.__reports.append(self.__journal) - self.__reports.append(self.__ledger) self.__reports.append(self.__income_expenses) + self.__reports.append(self.__ledger) + self.__reports.append(self.__journal) self.__reports.append(self.__trial_balance) self.__reports.append(self.__income_statement) self.__reports.append(self.__balance_sheet) @@ -80,28 +80,6 @@ class ReportChooser: if self.is_search: self.current_report = gettext("Search") - @property - def __journal(self) -> OptionLink: - """Returns the journal. - - :return: The journal. - """ - return OptionLink(gettext("Journal"), journal_url(self.__period), - self.__active_report == ReportType.JOURNAL, - fa_icon="fa-solid fa-book") - - @property - def __ledger(self) -> OptionLink: - """Returns the ledger. - - :return: The ledger. - """ - return OptionLink(gettext("Ledger"), - ledger_url(self.__currency, self.__account, - self.__period), - self.__active_report == ReportType.LEDGER, - fa_icon="fa-solid fa-clipboard") - @property def __income_expenses(self) -> OptionLink: """Returns the income and expenses log. @@ -118,6 +96,28 @@ class ReportChooser: self.__active_report == ReportType.INCOME_EXPENSES, fa_icon="fa-solid fa-money-bill-wave") + @property + def __ledger(self) -> OptionLink: + """Returns the ledger. + + :return: The ledger. + """ + return OptionLink(gettext("Ledger"), + ledger_url(self.__currency, self.__account, + self.__period), + self.__active_report == ReportType.LEDGER, + fa_icon="fa-solid fa-clipboard") + + @property + def __journal(self) -> OptionLink: + """Returns the journal. + + :return: The journal. + """ + return OptionLink(gettext("Journal"), journal_url(self.__period), + self.__active_report == ReportType.JOURNAL, + fa_icon="fa-solid fa-book") + @property def __trial_balance(self) -> OptionLink: """Returns the trial balance.