fix(dossier): batch operations to termine dossier should send emails
This commit is contained in:
parent
3b96970e05
commit
5154231ccf
2 changed files with 24 additions and 4 deletions
|
@ -82,13 +82,13 @@ class BatchOperation < ApplicationRecord
|
|||
when BatchOperation.operations.fetch(:desarchiver)
|
||||
dossier.desarchiver!
|
||||
when BatchOperation.operations.fetch(:passer_en_instruction)
|
||||
dossier.passer_en_instruction(instructeur: instructeur)
|
||||
dossier.passer_en_instruction!(instructeur: instructeur)
|
||||
when BatchOperation.operations.fetch(:accepter)
|
||||
dossier.accepter(instructeur: instructeur, motivation: motivation, justificatif: justificatif_motivation)
|
||||
dossier.accepter!(instructeur: instructeur, motivation: motivation, justificatif: justificatif_motivation)
|
||||
when BatchOperation.operations.fetch(:refuser)
|
||||
dossier.refuser(instructeur: instructeur, motivation: motivation, justificatif: justificatif_motivation)
|
||||
dossier.refuser!(instructeur: instructeur, motivation: motivation, justificatif: justificatif_motivation)
|
||||
when BatchOperation.operations.fetch(:classer_sans_suite)
|
||||
dossier.classer_sans_suite(instructeur: instructeur, motivation: motivation, justificatif: justificatif_motivation)
|
||||
dossier.classer_sans_suite!(instructeur: instructeur, motivation: motivation, justificatif: justificatif_motivation)
|
||||
when BatchOperation.operations.fetch(:follow)
|
||||
instructeur.follow(dossier)
|
||||
when BatchOperation.operations.fetch(:repousser_expiration)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue