Simplified the context of the new record template in the view of the trasaction forms in the accounting application.
This commit is contained in:
parent
94243b676a
commit
a9c29a6f34
@ -829,10 +829,8 @@ def txn_form(request, txn_type, txn=None):
|
|||||||
form = TransactionForm()
|
form = TransactionForm()
|
||||||
form.transaction = txn
|
form.transaction = txn
|
||||||
form.txn_type = txn_type
|
form.txn_type = txn_type
|
||||||
new_record_context = {"record": RecordForm(),
|
new_record_context = {"record_type": "TTT",
|
||||||
"record_type": "TTT",
|
"no": "NNN"}
|
||||||
"no": "NNN",
|
|
||||||
"order": ""}
|
|
||||||
if txn_type == "transfer":
|
if txn_type == "transfer":
|
||||||
new_record_template = json.dumps(render_to_string(
|
new_record_template = json.dumps(render_to_string(
|
||||||
"accounting/include/record_form-transfer.html",
|
"accounting/include/record_form-transfer.html",
|
||||||
|
Loading…
Reference in New Issue
Block a user