Skip to content

Commit

Permalink
fix(output): Fixed serialization of values in HTML report
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil-mrzyglod committed Sep 1, 2024
1 parent 425783b commit 88a417d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ace/Output/HtmlOutputGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ public void Generate()
foreach (var resource in output.Resources)
{
var id = new ResourceIdentifier(resource.Id);
resultRows += string.Format(tableRow, id.Name, id.ResourceType, $"{resource.TotalCost:F} {output.Currency}", $"{resource.Delta:F} {output.Currency}");
resultRows += string.Format(tableRow, id.Name, id.ResourceType, $"{resource.TotalCost.Value:F} {output.Currency}", $"{resource.Delta.Value:F} {output.Currency}");
}

template = template.Replace("### [ACE-TBODY] ###", resultRows);
template = template.Replace("### [ACE-TFOOT-TOTALSUM] ###", $"{output.TotalCost:F} {output.Currency}");
template = template.Replace("### [ACE-TFOOT-DELTASUM] ###", $"{output.Delta:F} {output.Currency}");
template = template.Replace("### [ACE-TFOOT-TOTALSUM] ###", $"{output.TotalCost.Value:F} {output.Currency}");
template = template.Replace("### [ACE-TFOOT-DELTASUM] ###", $"{output.Delta.Value:F} {output.Currency}");
template = template.Replace("### [ACE-FOOTER-REPORTDATE] ###", DateTime.Now.ToString());
template = template.Replace("### [ACE-BASIC-TD-ALLRESOURCES] ###", output.TotalResourceCount.ToString());
template = template.Replace("### [ACE-BASIC-TD-ESTIMATEDRESOURCES] ###", output.EstimatedResourceCount.ToString());
Expand Down

0 comments on commit 88a417d

Please sign in to comment.