AndrewRyder
6 years agoQrew Cadet
monthly projection table creation
Hi,
I'm wondering the best approach to having entries in a table called "Billing Projections" created when a project is created under our project management (Projects have many Billing Projections). I could think of some Javascript and APIs, but wondering if an automation is possible? The goal is that PMs fill out billing projections once a project gets going so that we can get an idea of projected billings for that month across all active projects.
What I'd like to do is automatically create entries 6 months out but base it on a specific date field. Pseudo-code wise:
when project is created:
StartMonth = ToMonth(Project Start Date)
EndMonth = StartMonth+Months(6)
Iterate over this to create. Obviously, this could span a calendar year.
Example: Current Month is October 2019. I'd want table entries in Billing Projections:
Oct 2019
Nov 2019
Dec 2019
Jan 2020
Feb 2020
Mar 2020
Would an automation handle this? Would it be easier to make a URL Button with Javascript?
PMs could then add or delete months based on this, as every project is different.
Also, is there an ideal structure for Billing Projections to handle this? I currently use dropdowns for both months (has all 12) and year I defined 2019 through 2023.
Thanks!
------------------------------
Andrew Ryder
------------------------------
I'm wondering the best approach to having entries in a table called "Billing Projections" created when a project is created under our project management (Projects have many Billing Projections). I could think of some Javascript and APIs, but wondering if an automation is possible? The goal is that PMs fill out billing projections once a project gets going so that we can get an idea of projected billings for that month across all active projects.
What I'd like to do is automatically create entries 6 months out but base it on a specific date field. Pseudo-code wise:
when project is created:
StartMonth = ToMonth(Project Start Date)
EndMonth = StartMonth+Months(6)
Iterate over this to create. Obviously, this could span a calendar year.
Example: Current Month is October 2019. I'd want table entries in Billing Projections:
Oct 2019
Nov 2019
Dec 2019
Jan 2020
Feb 2020
Mar 2020
Would an automation handle this? Would it be easier to make a URL Button with Javascript?
PMs could then add or delete months based on this, as every project is different.
Also, is there an ideal structure for Billing Projections to handle this? I currently use dropdowns for both months (has all 12) and year I defined 2019 through 2023.
Thanks!
------------------------------
Andrew Ryder
------------------------------