Last active
March 6, 2018 17:19
-
-
Save iamtracy/5735a10de346e1b0dadecce087cec41d to your computer and use it in GitHub Desktop.
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
/************* | |
clientProjects = [ | |
{ | |
estHoursHigh: 30, | |
projectedHours: 27, | |
estHoursLow: 20, | |
currentHoursBilled: 24, | |
serviceType: "premium", | |
canEditDueDate: false, | |
projectName: "yep, project here", | |
service: [ | |
{ | |
"name": "Est Hours Remaining", | |
"value": 27 // = projectedHours | |
}, | |
{ | |
"name": "March MTD Actual", | |
"value": 12 | |
} | |
] | |
}, | |
{ | |
estHoursHigh: 40, | |
projectedHours: 32, | |
estHoursLow: 10, | |
currentHoursBilled: 30, | |
serviceType: "recurring", | |
canEditDueDate: true, | |
projectName: "hey man, me too", | |
service: [ | |
{ | |
"name": "Budget Projection", | |
"value": 21 | |
}, | |
{ | |
"name": "March MTD Actual", | |
"value": 12 | |
} | |
] | |
} | |
] | |
*************/ | |
/************* | |
//breakdown by service line, AM portal only | |
projBreakdown = [ | |
[{ | |
"name": "CFO", | |
"series": [ | |
{ | |
"name": "Premium", | |
"value": 8613 | |
}, | |
{ | |
"name": "Recurring", | |
"value": 10500 | |
} | |
] | |
}], | |
[{ | |
"name": "CPA/Account Advisory", | |
"series": [ | |
{ | |
"name": "Premium", | |
"value": 11481 | |
}, | |
{ | |
"name": "Recurring", | |
"value": 8168 | |
} | |
] | |
}], | |
[{ | |
"name": "FP&A", | |
"series": [ | |
{ | |
"name": "Premium", | |
"value": 10467 | |
}, | |
{ | |
"name": "Recurring", | |
"value": 10467 | |
} | |
] | |
}], | |
[{ | |
"name": "Full Charge Bookkeeping", | |
"series": [ | |
{ | |
"name": "Premium", | |
"value": 45234 | |
}, | |
{ | |
"name": "Recurring", | |
"value": 68452 | |
} | |
] | |
}], | |
[{ | |
"name": "Tax Preparation", | |
"series": [ | |
{ | |
"name": "Premium", | |
"value": 8980 | |
}, | |
{ | |
"name": "Recurring", | |
"value": 0 | |
} | |
] | |
}] | |
] | |
*************/ | |
/************* | |
//actual, projected, and goal | |
//same for AM and FL portal | |
//user can toggle between money and hours | |
actualProjGoal = { | |
// equal to money => series => value sum | |
totalMoney: 50000, | |
// equal to hours => series => value sum | |
totalHours: 1150, | |
money: [{ | |
"name": "Amount", | |
"series": [ | |
{ | |
"name": "Actual", | |
"value": 3000 | |
}, | |
{ | |
"name": "Projected", | |
"value": 7000 | |
}, | |
{ | |
"name": "Goal", | |
"value": 40000 | |
} | |
] | |
}], | |
hours: [{ | |
"name": "Amount", | |
"series": [ | |
{ | |
"name": "Actual", | |
"value": 250 | |
}, | |
{ | |
"name": "Projected", | |
"value": 300 | |
}, | |
{ | |
"name": "Goal", | |
"value": 600 | |
} | |
] | |
}] | |
}; | |
*************/ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment