diff --git a/src/accounting/journal_entry/views.py b/src/accounting/journal_entry/views.py index 5b9b900..d8ba4c1 100644 --- a/src/accounting/journal_entry/views.py +++ b/src/accounting/journal_entry/views.py @@ -201,16 +201,16 @@ def show_journal_entry_order(journal_entry_date: dt.date) -> str: date=journal_entry_date, list=journal_entries) -@bp.post("dates/", endpoint="sort") +@bp.post("dates/", endpoint="sort") @has_permission(can_edit) -def sort_journal_entries(journal_entry_date: dt.date) -> redirect: +def sort_journal_entries(date: dt.date) -> redirect: """Reorders the journal entries in a date. - :param journal_entry_date: The date. + :param date: The date. :return: The redirection to the incoming account or the account list. The reordering operation does not fail. """ - form: JournalEntryReorderForm = JournalEntryReorderForm(journal_entry_date) + form: JournalEntryReorderForm = JournalEntryReorderForm(date) form.save_order() if not form.is_modified: flash(s(lazy_gettext("The order was not modified.")), "success") diff --git a/src/accounting/templates/accounting/journal-entry/order.html b/src/accounting/templates/accounting/journal-entry/order.html index 67faa55..5baf06f 100644 --- a/src/accounting/templates/accounting/journal-entry/order.html +++ b/src/accounting/templates/accounting/journal-entry/order.html @@ -38,7 +38,7 @@ First written: 2023/2/26 {% if list|length > 1 and accounting_can_edit() %} -
+ {% if request.args.next %}