Add new RNA Type de champ

This commit is contained in:
Damien Le Thiec 2022-09-21 15:17:23 +02:00
parent 673ea9843e
commit 606ac48964
4 changed files with 14 additions and 0 deletions

View file

@ -47,6 +47,7 @@ class TypeDeChamp < ApplicationRecord
dossier_link: 'dossier_link', dossier_link: 'dossier_link',
piece_justificative: 'piece_justificative', piece_justificative: 'piece_justificative',
siret: 'siret', siret: 'siret',
rna: 'rna',
carte: 'carte', carte: 'carte',
repetition: 'repetition', repetition: 'repetition',
titre_identite: 'titre_identite', titre_identite: 'titre_identite',
@ -261,6 +262,10 @@ class TypeDeChamp < ApplicationRecord
type_champ == TypeDeChamp.type_champs.fetch(:cnaf) type_champ == TypeDeChamp.type_champs.fetch(:cnaf)
end end
def rna?
type_champ == TypeDeChamp.type_champs.fetch(:rna)
end
def dgfip? def dgfip?
type_champ == TypeDeChamp.type_champs.fetch(:dgfip) type_champ == TypeDeChamp.type_champs.fetch(:dgfip)
end end

View file

@ -0,0 +1,5 @@
class TypesDeChamp::RNATypeDeChamp < TypesDeChamp::TypeDeChampBase
def estimated_fill_duration(revision)
FILL_DURATION_MEDIUM
end
end

View file

@ -31,6 +31,7 @@ fr:
dossier_link: 'Lien vers un autre dossier' dossier_link: 'Lien vers un autre dossier'
piece_justificative: 'Pièce justificative' piece_justificative: 'Pièce justificative'
siret: 'SIRET' siret: 'SIRET'
rna: 'RNA'
carte: 'Carte' carte: 'Carte'
repetition: 'Bloc répétable' repetition: 'Bloc répétable'
titre_identite: 'Titre identité' titre_identite: 'Titre identité'

View file

@ -143,6 +143,9 @@ FactoryBot.define do
factory :type_de_champ_siret do factory :type_de_champ_siret do
type_champ { TypeDeChamp.type_champs.fetch(:siret) } type_champ { TypeDeChamp.type_champs.fetch(:siret) }
end end
factory :type_de_champ_rna do
type_champ { TypeDeChamp.type_champs.fetch(:rna) }
end
factory :type_de_champ_iban do factory :type_de_champ_iban do
type_champ { TypeDeChamp.type_champs.fetch(:iban) } type_champ { TypeDeChamp.type_champs.fetch(:iban) }
end end