Added the default report view as the income and expenses log with the default currency, default account and default period. Changed the previous default journal links to the current default.

This commit is contained in:
imacat committed 2023-03-09 20:59:09 +08:00
1 parent ec257a4b57
commit 05ac5158f8
11 files changed
+56 -12

No files matched your search

+3 -3
View File
@@ -163,7 +163,7 @@ def delete_transaction(txn: Transaction) -> redirect:
sort_transactions_in(txn.date, txn.id)
db.session.commit()
flash(lazy_gettext("The transaction is deleted successfully."), "success")
return redirect(or_next(url_for("accounting.report.journal-default")))
return redirect(or_next(url_for("accounting.report.default")))
@bp.get("/dates/<date:txn_date>", endpoint="order")
@@ -194,10 +194,10 @@ def sort_transactions(txn_date: date) -> redirect:
form.save_order()
if not form.is_modified:
flash(lazy_gettext("The order was not modified."), "success")
return redirect(or_next(url_for("accounting.report.journal-default")))
return redirect(or_next(url_for("accounting.report.default")))
db.session.commit()
flash(lazy_gettext("The order is updated successfully."), "success")
return redirect(or_next(url_for("accounting.report.journal-default")))
return redirect(or_next(url_for("accounting.report.default")))
def __get_detail_uri(txn: Transaction) -> str: