Renamed the template form-record-transfer to record_form-transfer, and form-record-non-transfer to record_form-non-transfer in the accounting application.

This commit is contained in:
imacat committed 2020-08-09 12:25:14 +08:00
1 parent 19c1e8b586
commit b84c9306cb
6 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -845,11 +845,11 @@ def txn_form(request, txn_type, txn=None):
"order": ""}
if txn_type == "transfer":
new_record_template = json.dumps(render_to_string(
"accounting/include/form-record-transfer.html",
"accounting/include/record_form-transfer.html",
new_record_context))
else:
new_record_template = json.dumps(render_to_string(
"accounting/include/form-record-non-transfer.html",
"accounting/include/record_form-non-transfer.html",
new_record_context))
return render(request, F"accounting/transaction_form-{txn_type}.html", {
"form": form,