Revised the form of the transactions to supply the account code instead of the account primary key in the accounting application.
This commit is contained in:
parent
2252e4cb98
commit
6e08093464
@ -71,7 +71,7 @@ First written: 2020/7/23
|
|||||||
{% str_format "debit-{}-account" forloop.counter as field %}
|
{% str_format "debit-{}-account" forloop.counter as field %}
|
||||||
<select id="{{ field }}" class="form-control record-account debit-account {% if errors|dict:field %} is-invalid {% endif %}" name="{{ field }}">
|
<select id="{{ field }}" class="form-control record-account debit-account {% if errors|dict:field %} is-invalid {% endif %}" name="{{ field }}">
|
||||||
{% if x.account is not None %}
|
{% if x.account is not None %}
|
||||||
<option value="{{ x.account.pk }}" selected="selected">{{ x.account.code }} {{ x.account.title }}</option>
|
<option value="{{ x.account.code }}" selected="selected">{{ x.account.code }} {{ x.account.title }}</option>
|
||||||
{% else %}
|
{% else %}
|
||||||
<option value=""></option>
|
<option value=""></option>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -71,7 +71,7 @@ First written: 2020/7/23
|
|||||||
{% str_format "credit-{}-account" forloop.counter as field %}
|
{% str_format "credit-{}-account" forloop.counter as field %}
|
||||||
<select id="{{ field }}" class="form-control record-account credit-account {% if errors|dict:field %} is-invalid {% endif %}" name="{{ field }}">
|
<select id="{{ field }}" class="form-control record-account credit-account {% if errors|dict:field %} is-invalid {% endif %}" name="{{ field }}">
|
||||||
{% if x.account is not None %}
|
{% if x.account is not None %}
|
||||||
<option value="{{ x.account.pk }}" selected="selected">{{ x.account.code }} {{ x.account.title }}</option>
|
<option value="{{ x.account.code }}" selected="selected">{{ x.account.code }} {{ x.account.title }}</option>
|
||||||
{% else %}
|
{% else %}
|
||||||
<option value=""></option>
|
<option value=""></option>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -77,7 +77,7 @@ First written: 2020/7/23
|
|||||||
{% str_format "debit-{}-account" forloop.counter as field %}
|
{% str_format "debit-{}-account" forloop.counter as field %}
|
||||||
<select id="{{ field }}" class="form-control record-account debit-account {% if errors|dict:field %} is-invalid {% endif %}" name="{{ field }}">
|
<select id="{{ field }}" class="form-control record-account debit-account {% if errors|dict:field %} is-invalid {% endif %}" name="{{ field }}">
|
||||||
{% if x.account is not None %}
|
{% if x.account is not None %}
|
||||||
<option value="{{ x.account.pk }}" selected="selected">{{ x.account.code }} {{ x.account.title }}</option>
|
<option value="{{ x.account.code }}" selected="selected">{{ x.account.code }} {{ x.account.title }}</option>
|
||||||
{% else %}
|
{% else %}
|
||||||
<option value=""></option>
|
<option value=""></option>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -144,7 +144,7 @@ First written: 2020/7/23
|
|||||||
{% str_format "credit-{}-account" forloop.counter as field %}
|
{% str_format "credit-{}-account" forloop.counter as field %}
|
||||||
<select id="{{ field }}" class="form-control record-account credit-account {% if errors|dict:field %} is-invalid {% endif %}" name="{{ field }}">
|
<select id="{{ field }}" class="form-control record-account credit-account {% if errors|dict:field %} is-invalid {% endif %}" name="{{ field }}">
|
||||||
{% if x.account is not None %}
|
{% if x.account is not None %}
|
||||||
<option value="{{ x.account.pk }}" selected="selected">{{ x.account.code }} {{ x.account.title }}</option>
|
<option value="{{ x.account.code }}" selected="selected">{{ x.account.code }} {{ x.account.title }}</option>
|
||||||
{% else %}
|
{% else %}
|
||||||
<option value=""></option>
|
<option value=""></option>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user