feat(correction): badge Corrigé when a correction has been resolved

Closes #9928
This commit is contained in:
Colin Darie 2024-01-24 17:01:59 +01:00
parent 261932b56f
commit 8e6a1c58b2
7 changed files with 35 additions and 4 deletions

View file

@ -5,6 +5,12 @@ class DossierProjectionService
corrections.any? { _1[:resolved_at].nil? }
end
def resolved_corrections?
return false if corrections.blank?
corrections.all? { _1[:resolved_at].present? }
end
end
end