2018-01-23 17:15:42 +01:00
|
|
|
FactoryBot.define do
|
2015-08-13 15:55:19 +02:00
|
|
|
factory :etablissement do
|
2018-09-04 16:46:48 +02:00
|
|
|
siret { '44011762001530' }
|
|
|
|
siege_social { true }
|
|
|
|
naf { '4950Z' }
|
|
|
|
libelle_naf { 'Transports par conduites' }
|
|
|
|
adresse { "GRTGAZ\r IMMEUBLE BORA\r 6 RUE RAOUL NORDLING\r 92270 BOIS COLOMBES\r" }
|
|
|
|
numero_voie { '6' }
|
|
|
|
type_voie { 'RUE' }
|
|
|
|
nom_voie { 'RAOUL NORDLING' }
|
|
|
|
complement_adresse { 'IMMEUBLE BORA' }
|
|
|
|
code_postal { '92270' }
|
|
|
|
localite { 'BOIS COLOMBES' }
|
|
|
|
code_insee_localite { '92009' }
|
2018-04-05 18:54:33 +02:00
|
|
|
|
2018-09-04 16:46:48 +02:00
|
|
|
entreprise_siren { '440117620' }
|
|
|
|
entreprise_capital_social { 537_100_000 }
|
|
|
|
entreprise_numero_tva_intracommunautaire { 'FR27440117620' }
|
|
|
|
entreprise_forme_juridique { 'SA à conseil d\'administration (s.a.i.)' }
|
|
|
|
entreprise_forme_juridique_code { '5599' }
|
|
|
|
entreprise_nom_commercial { 'GRTGAZ' }
|
|
|
|
entreprise_raison_sociale { 'GRTGAZ' }
|
|
|
|
entreprise_siret_siege_social { '44011762001530' }
|
|
|
|
entreprise_code_effectif_entreprise { '51' }
|
|
|
|
entreprise_date_creation { "1990-04-24" }
|
2018-10-15 12:25:25 +02:00
|
|
|
|
|
|
|
trait :with_exercices do
|
|
|
|
after(:create) do |etablissement, _evaluator|
|
|
|
|
create(:exercice, etablissement: etablissement)
|
|
|
|
end
|
|
|
|
end
|
2018-04-05 18:54:33 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
trait :is_association do
|
2018-09-04 16:46:48 +02:00
|
|
|
association_rna { "W072000535" }
|
|
|
|
association_titre { "ASSOCIATION POUR LA PROMOTION DE SPECTACLES AU CHATEAU DE ROCHEMAURE" }
|
|
|
|
association_objet { "mise en oeuvre et réalisation de spectacles au chateau de rochemaure" }
|
|
|
|
association_date_creation { "1990-04-24" }
|
|
|
|
association_date_declaration { "2014-11-28" }
|
|
|
|
association_date_publication { "1990-05-16" }
|
2015-08-13 15:55:19 +02:00
|
|
|
end
|
2015-08-20 17:30:17 +02:00
|
|
|
end
|