Fix ruff lint violations

This commit is contained in:
Marcel Peterkau
2026-06-27 10:46:54 +02:00
parent 9944652dfb
commit 3876f8c5ab
12 changed files with 217 additions and 49 deletions
+15 -1
View File
@@ -261,12 +261,26 @@ class ClaimTab(ttk.Frame):
for allocation in self.data.allocations
if str(allocation.get("claim_id", "")) == self.claim_id and str(allocation.get("credit_id", ""))
]
allocated_credit_total = money_text(
sum(
(decimal_value(item.get("amount", "0")) for item in credit_allocations),
Decimal("0"),
)
)
credit_group = self.ledger.insert(
"",
"end",
iid="group:credits",
text=f"Gutschriften ({len(credit_allocations)})",
values=("", "", "", "", f"{money_text(sum((decimal_value(item.get('amount', '0')) for item in credit_allocations), Decimal('0')))} EUR", "", ""),
values=(
"",
"",
"",
"",
f"{allocated_credit_total} EUR",
"",
"",
),
tags=("credit-group",),
open=True,
)