Merge pull request #9744 from colinux/correction-reason-update
API: une demande de correction de dossier peut être de type "outdated"
This commit is contained in:
commit
be994c8933
4 changed files with 12 additions and 1 deletions
|
@ -568,6 +568,11 @@ enum CorrectionReason {
|
|||
Le dossier n’est pas valide et nécessite une correction
|
||||
"""
|
||||
incorrect
|
||||
|
||||
"""
|
||||
Le dossier doit être mis à jour et revalidé
|
||||
"""
|
||||
outdated
|
||||
}
|
||||
|
||||
"""
|
||||
|
|
|
@ -6,7 +6,11 @@ class DossierCorrection < ApplicationRecord
|
|||
|
||||
scope :pending, -> { where(resolved_at: nil) }
|
||||
|
||||
enum reason: { incorrect: 'incorrect', incomplete: 'incomplete' }, _prefix: :dossier
|
||||
enum reason: {
|
||||
incorrect: 'incorrect',
|
||||
incomplete: 'incomplete',
|
||||
outdated: 'outdated'
|
||||
}, _prefix: :dossier
|
||||
|
||||
def resolved?
|
||||
resolved_at.present?
|
||||
|
|
|
@ -5,3 +5,4 @@ en:
|
|||
reasons:
|
||||
incorrect: "The file is invalid and needs to be corrected"
|
||||
incomplete: "The file is incomplete and needs to be completed"
|
||||
outdated: "The file needs to be updated and revalidated"
|
||||
|
|
|
@ -5,3 +5,4 @@ fr:
|
|||
reasons:
|
||||
incorrect: "Le dossier n’est pas valide et nécessite une correction"
|
||||
incomplete: "Le dossier est incomplet et nécessite d’être complété"
|
||||
outdated: "Le dossier doit être mis à jour et revalidé"
|
||||
|
|
Loading…
Reference in a new issue