Skip to content

Commit

Permalink
Merge pull request #510 from DFID/update-budget-info-12332
Browse files Browse the repository at this point in the history
Update budget info 12332
  • Loading branch information
aunindadf authored Apr 15, 2021
2 parents 1e1309d + 372d38c commit 8a652f6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion helpers/country_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def budgetBarGraphDataD(apiLink, type)
end
tempInfo.each do |key, val|
val.each do |k , v|
columnData[key][finYearList.index(k)] = v
columnData[key][finYearList.index(k)] = v.to_f.floor(2)
end
end
finalData = []
Expand Down
2 changes: 1 addition & 1 deletion helpers/project_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ def project_budget_per_fy(projectId)
{
"fy" => fy,
"type" => "spend",
"value" => bs.inject(0) { |v, item| v + item["value"] },
"value" => bs.inject(0) { |v, item| v + item["value"].to_f.floor(2) },
}
}

Expand Down
2 changes: 1 addition & 1 deletion views/projects/summary.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
<div class="six columns">
<div class="country-info-container">
<span class="country-info">Budget</span>
<p>A comparison of forecast spend and the total amount of money spent on the project to date.</p>
<p>A comparison across six financial years of forecast spend and the total amount of money spent on the project to date.</p>
</div>
<div id="budget-plan-spend" style="height: 300px; width: 100%;" class="row"></div>
</div>
Expand Down

0 comments on commit 8a652f6

Please sign in to comment.