feat: show account group on account reconciliation form

This commit is contained in:
Herculino Trotta
2024-10-20 11:55:52 -03:00
parent 1909184d55
commit b77e48ef42
3 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -31,13 +31,14 @@ def account_reconciliation(request):
initial_data = [
{
"account_id": account.id,
"account_group": account.group,
"account_name": account.name,
"decimal_places": account.currency.decimal_places,
"suffix": account.currency.suffix,
"prefix": account.currency.prefix,
"current_balance": get_account_balance(account),
}
for account in Account.objects.all().select_related("currency")
for account in Account.objects.all().select_related("currency", "group")
]
if request.method == "POST":