From 124e7731f13bf3faf9503fba5fcdb5af7f88a1fb Mon Sep 17 00:00:00 2001 From: SysAdmin Agent Date: Sun, 14 Jun 2026 20:55:42 +0000 Subject: [PATCH] Show payment indicator on Nachweis row when related payment exists (STI-107) After the Q3/2026 backfill the staff reported the Nachweise tab still showed Q3 rows as "Offen" with no visual cue that a support payment had been created. Reason: the existing columns only reflect Nachweis field confirmations (Studiennachweis / income / assets), not the payment. Add a small status badge next to the Nachweis status that links to the related DestinataerUnterstuetzung when one exists. Colour follows the payment lifecycle: blue when planned, info when proof submitted, warning when released for payout, success when transferred. Uses the existing VierteljahresNachweis.get_related_support_payment() helper, so no model changes and no migration. Refs STI-107 Co-Authored-By: Paperclip --- app/templates/stiftung/destinataer_detail.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/templates/stiftung/destinataer_detail.html b/app/templates/stiftung/destinataer_detail.html index 880364a..e29498a 100644 --- a/app/templates/stiftung/destinataer_detail.html +++ b/app/templates/stiftung/destinataer_detail.html @@ -471,6 +471,19 @@ {% elif nachweis.status == 'nachbesserung' %}Nachbesserung {% elif nachweis.status == 'abgelehnt' %}Abgelehnt {% endif %} + {% with related_payment=nachweis.get_related_support_payment %} + {% if related_payment %} + {% if related_payment.status == 'ausgezahlt' or related_payment.status == 'abgeschlossen' %} + Überwiesen + {% elif related_payment.status == 'freigegeben' or related_payment.status == 'in_bearbeitung' %} + Freigegeben + {% elif related_payment.status == 'nachweis_eingereicht' %} + Wartet + {% else %} + Zahlung angelegt + {% endif %} + {% endif %} + {% endwith %} {% with completion=nachweis.get_completion_percentage %} -- 2.49.1