mirror of
https://git.hiabuto.net/C3MA/CCMA.git
synced 2026-07-01 11:14:52 +02:00
Fix ruff lint violations
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user