[#10951] Create a cron job to warn user that old brouillon is deleted
This commit is contained in:
parent
38e9ca4979
commit
5ab0899a49
6 changed files with 84 additions and 1 deletions
|
@ -567,7 +567,7 @@ class Dossier < ApplicationRecord
|
|||
end
|
||||
|
||||
def can_be_deleted_by_automatic?(reason)
|
||||
reason == :expired && !en_instruction?
|
||||
reason == :expired && !en_instruction? || reason == :not_modified_for_a_long_time && brouillon?
|
||||
end
|
||||
|
||||
def can_terminer_automatiquement_by_sva_svr?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue