Show credit settlements as positive amounts

This commit is contained in:
Marcel Peterkau
2026-06-27 15:39:52 +02:00
parent d897dd5f6e
commit d8900d9767
5 changed files with 54 additions and 3 deletions
+2 -1
View File
@@ -12,6 +12,7 @@ from ccma.domain.contributions import (
allocated_total,
claim_balance,
claim_items,
claim_settled_total,
claim_status,
claim_total,
credit_allocated_total,
@@ -166,7 +167,7 @@ class ClaimTab(ttk.Frame):
messagebox.showerror("Forderung konnte nicht geladen werden", str(exc), parent=self)
return
total = claim_total(self.claim)
paid = allocated_total(self.data, self.claim_id)
paid = claim_settled_total(self.data, self.claim)
balance = claim_balance(self.data, self.claim)
status = claim_status(self.data, self.claim)
self.title_var.set(str(self.claim.get("title") or "Forderung"))