From be54f3eb5a74858a81bbc51fd73c12e9bd4fc87c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D1=91=D0=BD=D0=B0=20=D0=A4=D1=80=D0=BE=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0?= Date: Thu, 19 Dec 2024 01:04:23 +0400 Subject: [PATCH] =?UTF-8?q?=D1=83=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=BA=D0=BE=D0=BC=D0=BC=D0=B5=D1=82=D0=B0=D1=80=D0=B8?= =?UTF-8?q?=D0=B5=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ProjectHorseRacing/Reports/TableReport.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ProjectHorseRacing/ProjectHorseRacing/Reports/TableReport.cs b/ProjectHorseRacing/ProjectHorseRacing/Reports/TableReport.cs index 9da47a4..a97b11f 100644 --- a/ProjectHorseRacing/ProjectHorseRacing/Reports/TableReport.cs +++ b/ProjectHorseRacing/ProjectHorseRacing/Reports/TableReport.cs @@ -50,14 +50,12 @@ internal class TableReport }) .OrderBy(x => x.Date); - - // Формируем таблицу для отчета - return new List() { item } // Заголовок + return new List() { item } .Union(buyHorses - .Select(x => new string[] { x.Date.ToString("dd.MM.yyyy"), x.Cost.ToString()! })) // Дата и суммарная стоимость + .Select(x => new string[] { x.Date.ToString("dd.MM.yyyy"), x.Cost.ToString()! })) .Union(new[] { - new string[] { "Всего", buyHorses.Sum(x => x.Cost).ToString()! } // Итоговая строка + new string[] { "Всего", buyHorses.Sum(x => x.Cost).ToString()! } }) .ToList(); }