{# The Mia! Accounting Flask Project currency-sub-form.html: The currency sub-form in the cash income transaction form Copyright (c) 2023 imacat. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Author: imacat@mail.imacat.idv.tw (imacat) First written: 2023/2/25 #}
{% if currency_code_errors %}{{ currency_code_errors[0] }}{% endif %}
    {% for entry_form in credit_forms %} {% with currency_index = currency_index, entry_type = "credit", entry_index = loop.index, only_one_entry_form = debit_forms|length == 1, entry_id = entry_form.eid.data, account_code_data = "" if entry_form.account_code.data is none else entry_form.account_code.data, account_code_error = entry_form.account_code.errors, account_text = entry_form.account_text, summary_data = "" if entry_form.summary.data is none else entry_form.summary.data, summary_errors = entry_form.summary.errors, amount_data = "" if entry_form.amount.data is none else entry_form.amount.data|accounting_txn_format_amount_input, amount_errors = entry_form.amount.errors, amount_text = entry_form.amount.data|accounting_format_amount, entry_errors = entry_form.all_errors %} {% include "accounting/transaction/include/form-entry-item.html" %} {% endwith %} {% endfor %}
{{ A_("Total") }}
{{ credit_total }}
{% if credit_errors %}{{ credit_errors[0] }}{% endif %}
{% if currency_errors %}{{ currency_errors[0] }}{% endif %}