Готово

This commit is contained in:
Tonb73 2024-12-07 11:11:44 +03:00
parent 2e0ba1ba5e
commit a1a7cad61f

View File

@ -79,13 +79,13 @@ namespace ProjectTourAgency.Reports
.Union(data.Select(x => new string[] {
x.ClientName.ToString(),
x.Date.ToString(),
x.CountIn?.ToString() ?? string.Empty,
x.CountOut?.ToString() ?? string.Empty }))
x.CountIn?.ToString() ?? "NO",
x.CountOut?.ToString() ?? "NO"}))
.Union(new[] { new string[] {
"Всего",
"",
data.Sum(x => x.CountIn ?? 0).ToString("NO"),
data.Sum(x => x.CountOut ?? 0).ToString("NO")
data.Sum(x => x.CountIn ?? 0) == 0 ? "NO" : data.Sum(x => x.CountIn ?? 0).ToString(),
data.Sum(x => x.CountOut ?? 0) == 0 ? "NO" : data.Sum(x => x.CountOut ?? 0).ToString()
}})
.ToList();
}