mirror of
https://git.hiabuto.net/C3MA/CCMA.git
synced 2026-08-26 07:15:20 +02:00
Show a claim or donation in the Zahlung anlegen/bearbeiten allocation table only if it still has an open balance, or is already linked to this payment -- fully settled ones no longer clutter the list. Visibility is decided from a snapshot taken when the dialog opens (or when a donation is created inline), not recomputed live, so a row never disappears just because the user temporarily unassigned it with "Zuordnung lösen" -- it stays there to add back with "Zuordnung setzen" until the dialog is saved. Also fixes a capacity display bug this surfaced: "Maximal zuordenbar" was computed by mixing the persisted claim/donation balance with the live, currently-edited allocation amount, so it inflated every time the amount was changed during a session. It's now computed against a fixed baseline captured at dialog open, so it stays accurate throughout. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>