From d7d6929bf2c6af54f9f88d8686d5b935fa34eee6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Mon, 20 Mar 2023 18:53:16 +0800 Subject: [PATCH] Fixed the parameter passed to the credit line item subform in the transfer voucher form. --- .../accounting/voucher/transfer/include/form-currency-item.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/accounting/templates/accounting/voucher/transfer/include/form-currency-item.html b/src/accounting/templates/accounting/voucher/transfer/include/form-currency-item.html index 7259f33..b43c772 100644 --- a/src/accounting/templates/accounting/voucher/transfer/include/form-currency-item.html +++ b/src/accounting/templates/accounting/voucher/transfer/include/form-currency-item.html @@ -82,7 +82,7 @@ First written: 2023/2/25 {% with currency_index = currency_index, side = "credit", line_item_index = loop.index, - only_one_line_item_form = debit_forms|length == 1, + only_one_line_item_form = credit_forms|length == 1, form = line_item_form.form %} {% include "accounting/voucher/include/form-line-item.html" %} {% endwith %}