Created
March 19, 2019 13:42
-
-
Save with-heart/e5132256704102a8ff958cbfe6f6c9c3 to your computer and use it in GitHub Desktop.
Income Calculator*
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
Income Calculator* | |
Steps* | |
incomeType* | |
SUBMIT if employed by other -> income | |
SUBMIT -> frequency | |
frequency | |
SUBMIT -> income | |
income | |
if self employed -> individualReturn | |
if employed by other -> employedByOther | |
if unemployed -> unemployment | |
if other income -> awardLetter | |
individualReturn | |
SUBMIT -> calculations | |
Individual Return* | |
adjustedGross* | |
SAVE_ADJUSTED_GROSS -> incomeOrLoss | |
incomeOrLoss | |
SAVE_INCOME_OR_LOSS -> totalTax | |
totalTax | |
SAVE_TOTAL_TAX -> irCompleted | |
irCompleted | |
awardLetter | |
SUBMIT -> calculations | |
unemployment | |
SUBMIT -> calculations | |
employedByOther | |
SUBMIT -> calculations | |
Employed By Other* | |
payRateTerm* | |
SAVE_PAY_RATE_TERM if paid hourly -> lowestPayRate | |
SAVE_PAY_RATE_TERM -> incentives | |
lowestPayRate | |
SAVE_LOWEST_PAY_RATE -> incentives | |
incentives | |
SAVE_INCENTIVES -> allowances | |
allowances | |
SAVE_ALLOWANCES if other allowances -> otherAllowances | |
SAVE_ALLOWANCES -> paystubs | |
otherAllowances | |
SAVE_OTHER_ALLOWANCES -> paystubs | |
paystubs | |
SUBMIT -> eboCompleted | |
Paystubs* | |
init* | |
if has existing paystubs -> listing | |
otherwise -> creatingInitial | |
creatingInitial | |
CREATE -> listing | |
listing | |
NEW -> creating | |
EDIT -> updating | |
DELETE -> deleting | |
SUBMIT -> confirming | |
creating | |
CREATE -> listing | |
updating | |
UPDATE -> listing | |
deleting | |
CONFIRM -> listing | |
confirming | |
CONFIRM -> pCompleted | |
pCompleted | |
eboCompleted | |
calculations | |
RESET -> Income Calculator |
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"}}, | |
`The current state is: ${current_state_name}`); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment