Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,7 @@ public async Task GetAdvancedDashboardService_WithExpensesInWindow_IncludesExpen
}

[Fact]
public async Task
GetAdvancedDashboardService_WithFuelCostAndMileageRate_NetSavingsUsesFuelCostOnly()
public async Task GetAdvancedDashboardService_WithFuelCostAndMileageRate_NetSavingsUsesFuelCostOnly()
{
using var dbContext = CreateDbContext();
var rider = await CreateRiderAsync(dbContext, "NetSavings Rider");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,9 @@ private static AdvancedSavingsWindow BuildWindow(
bool hasSavingsData = fuelCostAvoided.HasValue || oilChangeSavings.HasValue;
if (hasSavingsData || totalExpenses > 0m)
{
netSavings = RoundTo2((fuelCostAvoided ?? 0m) + (oilChangeSavings ?? 0m) - totalExpenses);
netSavings = RoundTo2(
(fuelCostAvoided ?? 0m) + (oilChangeSavings ?? 0m) - totalExpenses
);
}

return new AdvancedSavingsWindow(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Globalization;
using System.Globalization;
using System.Text.Json;
using BikeTracking.Api.Application.Imports;
using BikeTracking.Api.Infrastructure.Persistence;
Expand Down