Remove state :draft in all state list
This commit is contained in:
parent
778dd1a3e4
commit
d1bb453d0d
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ class Dossier < ActiveRecord::Base
|
||||||
EN_INSTRUCTION = %w(submitted received)
|
EN_INSTRUCTION = %w(submitted received)
|
||||||
A_INSTRUIRE = %w(received)
|
A_INSTRUIRE = %w(received)
|
||||||
TERMINE = %w(closed refused without_continuation)
|
TERMINE = %w(closed refused without_continuation)
|
||||||
ALL_STATE = %w(draft initiated updated replied validated submitted received closed refused without_continuation)
|
ALL_STATE = %w(initiated updated replied validated submitted received closed refused without_continuation)
|
||||||
|
|
||||||
def retrieve_last_piece_justificative_by_type(type)
|
def retrieve_last_piece_justificative_by_type(type)
|
||||||
pieces_justificatives.where(type_de_piece_justificative_id: type).last
|
pieces_justificatives.where(type_de_piece_justificative_id: type).last
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue