-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Intervention Budget total cash #29
Conversation
@achamseddine , please tag what features/bugs you're delivering in all these PRs, |
@robertavram [Fixes #123412861] |
Waiting for BO to confirm that amended budgets are not an issue if they get aggregated here.
Waiting for BO to confirm that amended budgets are not an issue if they |
according to FRG, the best practices for adding an amended budget is to add the total value of the budget for the amendment. IF we aggregate all budgets including all amendments we'll end up with an inaccurate budget. The way to tackle this is to only take the last budget (amendment or original). |
In case we have interventions with start date on 2015 and end date on 2016, that mean we have to split budget into 2 line 2015 and 2016 (percentage for each year) so with this action we can have the accurate numbers in the HACT dashboard for each year otherwise we get 0. I agree that we have to ignore the amendment |
For HACT we need the planned amount for for current year not for the whole intervention... closing this... FIX for hact dashboard is coming today |
@robertavram HACT is clear no doubt but there is straghtforward bug here that is not being fixed, an example: There is a two budget lines in this PD, one for 2015 and one for 2016. HACT dashboard will already take the 2016 line as it relates to this year, but the total value of the PD is incorrect in the summary and export screens: It should equal both years, in this case: 116574 |
[Fixes #123200751] |
I understand what you mean... There is a small subtlety here that, when an amendment is generated the whole budget gets affected and not only part of the budget. (For example if an original budget is 2015 and 2016, and in the system there is a budget amendment but only for the year 2016 the code should still aggregate 2015 original with 2016 amended). @achamseddine please include tests for this. |
I asked nazeef, hact dashboard should only reflect the current year. |
Hi all -- from what I gather from our engineering team, this falls outside of the business requirements. I've put a note in my calendar for the beginning of September to revisit this bug ticket when everyone is back in the office. |
@robertavram I think we are saying the same thing and there is an easy way to deal with this. When making an amendment only the additional cash should be added for the affected year, so if i have a two year budget and amend in 2016 then i create a new line with the additional amount, tagged to the relevant amendment log and the relevant year. Therefore when summing the rows across all budgets lines, the budget will always be correct as the rows are distinct. The HACT dashboard only selects rows for the current year so its calculations will also be correct. The only reason we used to reflect the total budget in the amendment is because we didn't used to have multi year budgets in EquiTrack/eTools and now we do! Would be great to have Nazeef's input on this approach please. |
sounds good... will discuss with Nazeef again.. |
Fixed in #160 closing... basically any amendment should represent the entire value for that year not just the delta... (BO guidance) therefore budget needs to be additive only for latest amendments and totaled across years |
Created abstract activity model in separate app.
Currently multi year budgets are displayed incorrectly as the only the last budget line is displayed and the total across years is therefore incorrect.