Skip to content

Commit

Permalink
Add info to pfmp show page
Browse files Browse the repository at this point in the history
  • Loading branch information
pskl committed Oct 25, 2024
1 parent 8e30143 commit b9f7b32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/pfmps/_payment_panel.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
de plafond maximum par an
%div.fr-mb-1w
= number_to_currency pfmp.previously_locked_amount
engagés par les PFMPs précédemment déclarées.
engagés par les PFMPs précédemment déclarées et validées.
6 changes: 5 additions & 1 deletion app/views/pfmps/_payment_requests_history.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@
= render partial: "payment_requests/badges", locals: { payment_request: payment_request }
.fr-mt-1w
= payment_request.status_explanation
- if payment_request.in_state?(:paid)
.fr-mt-2w.gray-text
Montant réellement versé :
= number_to_currency(payment_request.last_transition.metadata['PAIEMENT']['MTNET'].to_f)
.fr-mt-2w.gray-text
Coordonnées bancaires utilisées :
= payment_request.rib&.iban || payment_request.student.rib&.iban || "manquantes"
= payment_request.rib&.iban || payment_request.student.rib(current_establishment)&.iban || "manquantes"
.fr-mt-2w.gray-text
Dernière mise à jour le
= l(payment_request.last_transition&.updated_at || payment_request.updated_at, format: :long)

0 comments on commit b9f7b32

Please sign in to comment.