Integer codes for the Status field used in leave creation and approval.
Examples
iex> Deputy.Constants.LeaveStatus.pending()
0
iex> Deputy.Constants.LeaveStatus.approved()
1
iex> Deputy.Constants.LeaveStatus.declined()
2
iex> Deputy.Constants.LeaveStatus.cancelled()
3
iex> import Deputy.Constants.LeaveStatus
iex> is_approved(1)
true
Summary
Functions
Approved (Status: 1)
Cancelled (Status: 3)
Declined (Status: 2)
Guard: matches the approved leave status (1).
Guard: matches the cancelled leave status (3).
Guard: matches the declined leave status (2).
Guard: matches the pending leave status (0).
Pending approval (Status: 0)
Functions
Approved (Status: 1)
Cancelled (Status: 3)
Declined (Status: 2)
Guard: matches the approved leave status (1).
Guard: matches the cancelled leave status (3).
Guard: matches the declined leave status (2).
Guard: matches the pending leave status (0).
Pending approval (Status: 0)