Last active
October 4, 2018 09:54
-
-
Save FrancescoK/ab093a51f7dfa8f8f0b78ff902f03453 to your computer and use it in GitHub Desktop.
Contracts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contracts | |
CREATED* | |
confirm -> PENDING_CONFIRMATION | |
PENDING_CONFIRMATION | |
documents_created? -> CONFIRMED | |
CONFIRMED | |
set-to-ready -> READY | |
READY | |
set-to-active -> ACTIVE | |
ACTIVE | |
terminate -> PENDING_TERMINATION | |
extend -> PENDING_EXTENSION | |
rebook -> PENDING_REVIEW | |
PENDING_EXTENSION | |
extension_done? -> ACTIVE | |
PENDING_TERMINATION | |
extend - US only -> PENDING_EXTENSION | |
TERMINATED | |
revoke termination - DE only -> ACTIVE | |
extend - US only -> ACTIVE | |
PENDING_REVIEW | |
if termination type is termination -> REVIEW | |
if termination type is rebooking -> CLOSED | |
REVIEW | |
reviewed -> ACCOUNTING | |
ACCOUNTING | |
accounting_done? -> CLOSED | |
CLOSED |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function render(model){ | |
let current_state_name = model.active_states[0].name; | |
return $("h1", | |
{style: {color: "darkBlue"}}, | |
`Contract is ${current_state_name}`); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment