Merge pull request #5976 from tchak/relax-etablissement-validations

capital_social and numero_tva_intracommunautaire can be null
This commit is contained in:
LeSim 2021-03-11 13:38:03 +01:00 committed by GitHub
commit 6e95d1c710
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -1089,7 +1089,7 @@ type Entreprise {
""" """
capital social de lentreprise. -1 si inconnu. capital social de lentreprise. -1 si inconnu.
""" """
capitalSocial: BigInt! capitalSocial: BigInt
codeEffectifEntreprise: String codeEffectifEntreprise: String
dateCreation: ISO8601Date! dateCreation: ISO8601Date!
@ -1107,7 +1107,7 @@ type Entreprise {
inlineAdresse: String! inlineAdresse: String!
nom: String nom: String
nomCommercial: String! nomCommercial: String!
numeroTvaIntracommunautaire: String! numeroTvaIntracommunautaire: String
prenom: String prenom: String
raisonSociale: String! raisonSociale: String!
siren: String! siren: String!

View file

@ -7,8 +7,8 @@ module Types
end end
field :siren, String, null: false field :siren, String, null: false
field :capital_social, GraphQL::Types::BigInt, null: false, description: "capital social de lentreprise. -1 si inconnu." field :capital_social, GraphQL::Types::BigInt, null: true, description: "capital social de lentreprise. -1 si inconnu."
field :numero_tva_intracommunautaire, String, null: false field :numero_tva_intracommunautaire, String, null: true
field :forme_juridique, String, null: true field :forme_juridique, String, null: true
field :forme_juridique_code, String, null: true field :forme_juridique_code, String, null: true
field :nom_commercial, String, null: false field :nom_commercial, String, null: false