Skip to content

Instantly share code, notes, and snippets.

@FrancescoK
Last active October 4, 2018 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FrancescoK/ab093a51f7dfa8f8f0b78ff902f03453 to your computer and use it in GitHub Desktop.
Save FrancescoK/ab093a51f7dfa8f8f0b78ff902f03453 to your computer and use it in GitHub Desktop.
Contracts
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
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