feat: add option to archive accounts

This commit is contained in:
Herculino Trotta
2024-10-27 21:54:02 -03:00
parent 9f371c2693
commit bfd0cc45a3
8 changed files with 78 additions and 13 deletions
+3 -1
View File
@@ -38,7 +38,9 @@ def account_reconciliation(request):
"prefix": account.currency.prefix,
"current_balance": get_account_balance(account),
}
for account in Account.objects.all().select_related("currency", "group")
for account in Account.objects.filter(is_archived=False).select_related(
"currency", "group"
)
]
if request.method == "POST":