Moved the "accounting.transaction.template_globals" module to "accounting.template_globals", for the two template globals will be used in the reports beside the transaction management.
This commit is contained in:
		| @@ -25,7 +25,7 @@ First written: 2023/2/25 | ||||
|     <div class="d-flex justify-content-between mt-2 mb-3"> | ||||
|       <div class="form-floating accounting-currency-content"> | ||||
|         <select id="accounting-currency-{{ currency_index }}-code" class="form-select" name="currency-{{ currency_index }}-code"> | ||||
|           {% for currency in accounting_txn_currency_options() %} | ||||
|           {% for currency in accounting_currency_options() %} | ||||
|             <option value="{{ currency.code }}" {% if currency.code == currency_code_data %} selected="selected" {% endif %}>{{ currency }}</option> | ||||
|           {% endfor %} | ||||
|         </select> | ||||
|   | ||||
| @@ -38,7 +38,7 @@ First written: 2023/2/25 | ||||
|   {% else %} | ||||
|     {% with currency_index = 1, | ||||
|             only_one_currency_form = True, | ||||
|             currency_code_data = accounting_txn_default_currency_code(), | ||||
|             currency_code_data = accounting_default_currency_code(), | ||||
|             debit_total = "-" %} | ||||
|       {% include "accounting/transaction/expense/include/form-currency-item.html" %} | ||||
|     {% endwith %} | ||||
|   | ||||
| @@ -25,7 +25,7 @@ First written: 2023/2/25 | ||||
|     <div class="d-flex justify-content-between mt-2 mb-3"> | ||||
|       <div class="form-floating accounting-currency-content"> | ||||
|         <select id="accounting-currency-{{ currency_index }}-code" class="form-select" name="currency-{{ currency_index }}-code"> | ||||
|           {% for currency in accounting_txn_currency_options() %} | ||||
|           {% for currency in accounting_currency_options() %} | ||||
|             <option value="{{ currency.code }}" {% if currency.code == currency_code_data %} selected="selected" {% endif %}>{{ currency }}</option> | ||||
|           {% endfor %} | ||||
|         </select> | ||||
|   | ||||
| @@ -38,7 +38,7 @@ First written: 2023/2/25 | ||||
|   {% else %} | ||||
|     {% with currency_index = 1, | ||||
|             only_one_currency_form = True, | ||||
|             currency_code_data = accounting_txn_default_currency_code(), | ||||
|             currency_code_data = accounting_default_currency_code(), | ||||
|             credit_total = "-" %} | ||||
|       {% include "accounting/transaction/income/include/form-currency-item.html" %} | ||||
|     {% endwith %} | ||||
|   | ||||
| @@ -25,7 +25,7 @@ First written: 2023/2/25 | ||||
|     <div class="d-flex justify-content-between mt-2 mb-3"> | ||||
|       <div class="form-floating accounting-currency-content"> | ||||
|         <select id="accounting-currency-{{ currency_index }}-code" class="form-select" name="currency-{{ currency_index }}-code"> | ||||
|           {% for currency in accounting_txn_currency_options() %} | ||||
|           {% for currency in accounting_currency_options() %} | ||||
|             <option value="{{ currency.code }}" {% if currency.code == currency_code_data %} selected="selected" {% endif %}>{{ currency }}</option> | ||||
|           {% endfor %} | ||||
|         </select> | ||||
|   | ||||
| @@ -41,7 +41,7 @@ First written: 2023/2/25 | ||||
|   {% else %} | ||||
|     {% with currency_index = 1, | ||||
|             only_one_currency_form = True, | ||||
|             currency_code_data = accounting_txn_default_currency_code(), | ||||
|             currency_code_data = accounting_default_currency_code(), | ||||
|             debit_total = "-", | ||||
|             credit_total = "-" %} | ||||
|       {% include "accounting/transaction/transfer/include/form-currency-item.html" %} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user