Skip to content

fix(deployments): round decimal budget amounts in CSV import (#2164)#2783

Open
Tarekchehahde wants to merge 1 commit into
IFRCGo:developfrom
Tarekchehahde:fix/issue-2164-round-budget-csv-import
Open

fix(deployments): round decimal budget amounts in CSV import (#2164)#2783
Tarekchehahde wants to merge 1 commit into
IFRCGo:developfrom
Tarekchehahde:fix/issue-2164-round-budget-csv-import

Conversation

@Tarekchehahde

Copy link
Copy Markdown

Summary

  • Add parse_csv_integer() for 3W project CSV imports
  • Round decimal strings (e.g. 353873.10) to the nearest integer instead of failing validation

Test plan

  • Unit tests for decimal rounding, integers, empty, and invalid values
  • Manual: import a CSV row with decimal budget amount via admin bulk upload

Fixes #2164

Made with Cursor

…2164)

3W project CSV imports often contain decimal budget values; round to int
instead of rejecting the row.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[PROD] Rounding budget amount in 3W project CSV imports

1 participant