add cnaf type de champ

This commit is contained in:
simon lehericey 2021-09-24 14:21:13 +02:00
parent b69dafc3d4
commit d68129b34d
6 changed files with 17 additions and 1 deletions

View file

@ -1869,6 +1869,11 @@ enum TypeDeChamp {
"""
civilite
"""
Données de la Caisse nationale des allocations familiales
"""
cnaf
"""
Communes
"""

View file

@ -48,7 +48,8 @@ class TypeDeChamp < ApplicationRecord
repetition: 'repetition',
titre_identite: 'titre_identite',
iban: 'iban',
annuaire_education: 'annuaire_education'
annuaire_education: 'annuaire_education',
cnaf: 'cnaf'
}
belongs_to :revision, class_name: 'ProcedureRevision', optional: true

View file

@ -0,0 +1,2 @@
class TypesDeChamp::CnafTypeDeChamp < TypesDeChamp::TextTypeDeChamp
end

View file

@ -36,3 +36,5 @@ fr:
titre_identite: 'Titre identité'
iban: 'Iban'
annuaire_education: 'Annuaire de léducation'
cnaf: 'Données de la Caisse nationale des allocations familiales'

View file

@ -151,6 +151,9 @@ FactoryBot.define do
factory :type_de_champ_annuaire_education do
type_champ { TypeDeChamp.type_champs.fetch(:annuaire_education) }
end
factory :type_de_champ_cnaf do
type_champ { TypeDeChamp.type_champs.fetch(:cnaf) }
end
factory :type_de_champ_carte do
type_champ { TypeDeChamp.type_champs.fetch(:carte) }
end

View file

@ -77,6 +77,7 @@ describe ProcedureExportService do
"titre_identite",
"iban",
"annuaire_education",
"cnaf",
"text"
]
end
@ -164,6 +165,7 @@ describe ProcedureExportService do
"titre_identite",
"iban",
"annuaire_education",
"cnaf",
"text"
]
end
@ -247,6 +249,7 @@ describe ProcedureExportService do
"titre_identite",
"iban",
"annuaire_education",
"cnaf",
"text"
]
end