From 2f3ad99467c2b3e03f4e5fab4652f7464969ff78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Tue, 21 Mar 2023 11:54:45 +0800 Subject: [PATCH] Removed redundant code in the templates of the journal entry form. --- .../accounting/journal-entry/disbursement/include/form.html | 2 +- .../accounting/journal-entry/receipt/include/form.html | 2 +- .../accounting/journal-entry/transfer/include/form.html | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/accounting/templates/accounting/journal-entry/disbursement/include/form.html b/src/accounting/templates/accounting/journal-entry/disbursement/include/form.html index 2cd2ebc..9c2c98c 100644 --- a/src/accounting/templates/accounting/journal-entry/disbursement/include/form.html +++ b/src/accounting/templates/accounting/journal-entry/disbursement/include/form.html @@ -32,7 +32,7 @@ First written: 2023/2/25 currency_code_is_locked = currency_form.is_code_locked, debit_forms = currency_form.debit, debit_errors = currency_form.debit_errors, - debit_total = currency_form.form.debit_total|accounting_format_amount %} + debit_total = currency_form.debit_total|accounting_format_amount %} {% include "accounting/journal-entry/disbursement/include/form-currency.html" %} {% endwith %} {% endfor %} diff --git a/src/accounting/templates/accounting/journal-entry/receipt/include/form.html b/src/accounting/templates/accounting/journal-entry/receipt/include/form.html index 2b44a41..b62f9e2 100644 --- a/src/accounting/templates/accounting/journal-entry/receipt/include/form.html +++ b/src/accounting/templates/accounting/journal-entry/receipt/include/form.html @@ -32,7 +32,7 @@ First written: 2023/2/25 currency_code_is_locked = currency_form.is_code_locked, credit_forms = currency_form.credit, credit_errors = currency_form.credit_errors, - credit_total = currency_form.form.credit_total|accounting_format_amount %} + credit_total = currency_form.credit_total|accounting_format_amount %} {% include "accounting/journal-entry/receipt/include/form-currency.html" %} {% endwith %} {% endfor %} diff --git a/src/accounting/templates/accounting/journal-entry/transfer/include/form.html b/src/accounting/templates/accounting/journal-entry/transfer/include/form.html index f6a3246..efcc7b9 100644 --- a/src/accounting/templates/accounting/journal-entry/transfer/include/form.html +++ b/src/accounting/templates/accounting/journal-entry/transfer/include/form.html @@ -32,10 +32,10 @@ First written: 2023/2/25 currency_code_is_locked = currency_form.is_code_locked, debit_forms = currency_form.debit, debit_errors = currency_form.debit_errors, - debit_total = currency_form.form.debit_total|accounting_format_amount, + debit_total = currency_form.debit_total|accounting_format_amount, credit_forms = currency_form.credit, credit_errors = currency_form.credit_errors, - credit_total = currency_form.form.credit_total|accounting_format_amount %} + credit_total = currency_form.credit_total|accounting_format_amount %} {% include "accounting/journal-entry/transfer/include/form-currency.html" %} {% endwith %} {% endfor %}