2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-04-23 11:57:38 +02:00
|
|
|
class Entreprise < Hashie::Dash
|
|
|
|
def read_attribute_for_serialization(attribute)
|
|
|
|
self[attribute]
|
|
|
|
end
|
2018-02-22 16:53:29 +01:00
|
|
|
|
2020-05-06 15:06:04 +02:00
|
|
|
property :etablissement
|
2018-04-23 11:57:38 +02:00
|
|
|
property :siren
|
2021-03-16 12:56:56 +01:00
|
|
|
property :capital_social, default: nil
|
|
|
|
property :numero_tva_intracommunautaire, default: nil
|
2021-01-26 14:32:34 +01:00
|
|
|
property :forme_juridique, default: nil
|
|
|
|
property :forme_juridique_code, default: nil
|
2018-04-23 11:57:38 +02:00
|
|
|
property :nom_commercial
|
|
|
|
property :raison_sociale
|
|
|
|
property :siret_siege_social
|
|
|
|
property :code_effectif_entreprise
|
2022-07-18 12:24:41 +02:00
|
|
|
property :etat_administratif
|
2020-04-21 15:52:08 +02:00
|
|
|
property :effectif_mois
|
|
|
|
property :effectif_annee
|
|
|
|
property :effectif_mensuel
|
2020-04-22 19:00:25 +02:00
|
|
|
property :effectif_annuel
|
|
|
|
property :effectif_annuel_annee
|
2022-09-26 11:45:52 +02:00
|
|
|
property :date_creation, default: nil
|
2021-01-26 14:32:34 +01:00
|
|
|
property :nom, default: nil
|
|
|
|
property :prenom, default: nil
|
2023-11-24 10:33:18 +01:00
|
|
|
property :enseigne, default: nil
|
2016-08-30 11:18:43 +02:00
|
|
|
|
2018-04-23 11:57:38 +02:00
|
|
|
property :inline_adresse
|
2024-02-29 12:58:31 +01:00
|
|
|
|
|
|
|
def effectif_mensuel?
|
|
|
|
effectif_mensuel.present? && effectif_mois.present? && effectif_annee.present?
|
|
|
|
end
|
|
|
|
|
|
|
|
def effectif_annuel?
|
|
|
|
effectif_annuel.present? && effectif_annuel_annee.present?
|
|
|
|
end
|
2015-08-10 11:05:06 +02:00
|
|
|
end
|