Official support for declarative demarches
This commit is contained in:
parent
dfefb827d9
commit
46c1bbbc6f
8 changed files with 149 additions and 3 deletions
|
@ -411,13 +411,13 @@ class Dossier < ApplicationRecord
|
|||
end
|
||||
|
||||
def send_dossier_received
|
||||
if saved_change_to_state? && en_instruction?
|
||||
if saved_change_to_state? && en_instruction? && !procedure.declarative_accepte?
|
||||
NotificationMailer.send_dossier_received(self).deliver_later
|
||||
end
|
||||
end
|
||||
|
||||
def send_draft_notification_email
|
||||
if brouillon?
|
||||
if brouillon? && !procedure.declarative?
|
||||
DossierMailer.notify_new_draft(self).deliver_later
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue