Skip to content

PIMS-2362 Project Cost Calculation#3057

Draft
dbarkowsky wants to merge 14 commits intomainfrom
PIMS-2362
Draft

PIMS-2362 Project Cost Calculation#3057
dbarkowsky wants to merge 14 commits intomainfrom
PIMS-2362

Conversation

@dbarkowsky
Copy link
Collaborator

🎯 Summary

PIMS-2362

The goal of this ticket was to provide the option of auto-calculating monetary fields and to change.

Outstanding Issues

  • The descriptions for Monetary Types need to be updated in the database. We're still waiting on the PO for what descriptions they would like, then a migration should be made to carry out these changes.
  • I've noticed the saving of PropertyForm NetBookValue components doesn't act as expected. This should be a separate ticket though.

Changes

  • The MonetaryType table now has an IsCalculated field. This is used to determine whether or not a field can be manually edited. We could also use this to trigger a recalculation in the backend, but at the moment it's just based on whether Net Proceeds changes.
  • Tooltips are now an option on the FormFields. The description field from the MonetaryType is used at the moment, but you could put any string.

Testing

  • With descriptions added to the database, visually check that the tooltip works.
  • Edit the Net Proceeds field and make sure that Program Cost updates accordingly. Should be 1% of Net Proceeds if the project is Tier 2 or greater. If it is Tier 1, the value should be 0.

🔰 Checklist

  • I have read and agree with the following checklist and am following the guidelines in our Code of Conduct document.
  • I have performed a self-review of my code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation where required.
  • I have tested my changes to the best of my ability.
  • My changes generate no new warnings.

@github-actions
Copy link

🚀 Deployment Information

The React APP Image has been built with the tag: 3057. Please make sure to utilize this specific tag when promoting these changes to the TEST and PROD environments during the APP deployment. For more updates please monitor Image Tags Page on Wiki.

@github-actions github-actions bot added the Tests label Oct 27, 2025
@dbarkowsky dbarkowsky changed the title PIMS-2362 Produce Cost Calculation PIMS-2362 Project Cost Calculation Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant