Merge pull request #10468 from tchak/fix-handle-missing-siret-information
fix(dossier): handle missing siret information when dossier passe en instruction
This commit is contained in:
commit
ed2f615f2b
2 changed files with 5 additions and 1 deletions
|
@ -62,7 +62,6 @@ module DossierStateConcern
|
||||||
MailTemplatePresenterService.create_commentaire_for_state(self, Dossier.states.fetch(:en_instruction))
|
MailTemplatePresenterService.create_commentaire_for_state(self, Dossier.states.fetch(:en_instruction))
|
||||||
|
|
||||||
if procedure.sva_svr_enabled?
|
if procedure.sva_svr_enabled?
|
||||||
# TODO: handle serialization errors when SIRET demandeur was not completed
|
|
||||||
log_automatic_dossier_operation(:passer_en_instruction, self)
|
log_automatic_dossier_operation(:passer_en_instruction, self)
|
||||||
else
|
else
|
||||||
log_automatic_dossier_operation(:passer_en_instruction)
|
log_automatic_dossier_operation(:passer_en_instruction)
|
||||||
|
|
|
@ -164,6 +164,7 @@ class SerializerService
|
||||||
demandeur {
|
demandeur {
|
||||||
...PersonnePhysiqueFragment
|
...PersonnePhysiqueFragment
|
||||||
...PersonneMoraleFragment
|
...PersonneMoraleFragment
|
||||||
|
...PersonneMoraleIncompleteFragment
|
||||||
}
|
}
|
||||||
motivation
|
motivation
|
||||||
motivationAttachment {
|
motivationAttachment {
|
||||||
|
@ -309,6 +310,10 @@ class SerializerService
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fragment PersonneMoraleIncompleteFragment on PersonneMoraleIncomplete {
|
||||||
|
siret
|
||||||
|
}
|
||||||
|
|
||||||
fragment AddressFragment on Address {
|
fragment AddressFragment on Address {
|
||||||
label
|
label
|
||||||
type
|
type
|
||||||
|
|
Loading…
Reference in a new issue