add cnaf type de champ
This commit is contained in:
parent
b69dafc3d4
commit
d68129b34d
6 changed files with 17 additions and 1 deletions
|
@ -1869,6 +1869,11 @@ enum TypeDeChamp {
|
|||
"""
|
||||
civilite
|
||||
|
||||
"""
|
||||
Données de la Caisse nationale des allocations familiales
|
||||
"""
|
||||
cnaf
|
||||
|
||||
"""
|
||||
Communes
|
||||
"""
|
||||
|
|
|
@ -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
|
||||
|
|
2
app/models/types_de_champ/cnaf_type_de_champ.rb
Normal file
2
app/models/types_de_champ/cnaf_type_de_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class TypesDeChamp::CnafTypeDeChamp < TypesDeChamp::TextTypeDeChamp
|
||||
end
|
|
@ -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'
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue