fix(dossier): handle missing siret information when dossier passe en instruction

This commit is contained in:
Paul Chavard 2024-05-29 13:07:03 +02:00
parent 3b96970e05
commit eb9aad27c3
No known key found for this signature in database
2 changed files with 5 additions and 1 deletions

View file

@ -62,7 +62,6 @@ module DossierStateConcern
MailTemplatePresenterService.create_commentaire_for_state(self, Dossier.states.fetch(:en_instruction))
if procedure.sva_svr_enabled?
# TODO: handle serialization errors when SIRET demandeur was not completed
log_automatic_dossier_operation(:passer_en_instruction, self)
else
log_automatic_dossier_operation(:passer_en_instruction)

View file

@ -164,6 +164,7 @@ class SerializerService
demandeur {
...PersonnePhysiqueFragment
...PersonneMoraleFragment
...PersonneMoraleIncompleteFragment
}
motivation
motivationAttachment {
@ -309,6 +310,10 @@ class SerializerService
}
}
fragment PersonneMoraleIncompleteFragment on PersonneMoraleIncomplete {
siret
}
fragment AddressFragment on Address {
label
type