Added the transaction views in the accounting application.

This commit is contained in:
2020-07-23 22:02:26 +08:00
parent 41737c250e
commit 2db3899dea
18 changed files with 543 additions and 76 deletions

View File

@ -840,3 +840,21 @@ def search(request):
"pagination": pagination,
"reports": ReportUrl(),
})
@require_GET
@digest_login_required
def transaction_show(request, type, transaction):
"""The view of an accounting transaction.
Args:
request (HttpRequest): The request.
type (str): The transaction type.
transaction (Transaction): The transaction.
Returns:
HttpResponse: The response.
"""
return render(request, F"accounting/transactions/{type}/show.html", {
"item": transaction,
})