From 789e0f79c19b0671d9e49d3750f1994c14f72d9a Mon Sep 17 00:00:00 2001 From: m1aksim1 Date: Mon, 10 Apr 2023 22:23:52 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BE=D1=87=D0=B5=D1=80=D0=B5=D0=B4=D0=BD?= =?UTF-8?q?=D0=BE=D0=B9=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SoftwareInstallationBusinessLogic/ShopLogic.cs | 2 +- .../SoftwareInstallationView/ReportOrders.rdlc | 3 +-- .../SoftwareInstallationView.csproj | 9 +++++++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/SoftwareInstallation/SoftwareInstallationBusinessLogic/ShopLogic.cs b/SoftwareInstallation/SoftwareInstallationBusinessLogic/ShopLogic.cs index 52ff24f..23cd6cc 100644 --- a/SoftwareInstallation/SoftwareInstallationBusinessLogic/ShopLogic.cs +++ b/SoftwareInstallation/SoftwareInstallationBusinessLogic/ShopLogic.cs @@ -133,7 +133,7 @@ namespace SoftwareInstallationBusinessLogic _logger.LogInformation("AddPackageInShop. ShopName:{ShopName}.Id:{ Id}", model.Name, model.Id); var element = _shopStorage.GetElement(model); - int currCount = element.Packages.Values.First().Item2; + int currCount = element.Packages.Values.FirstOrDefault().Item2; if (element == null) { _logger.LogWarning("AddPackageInShop element not found"); diff --git a/SoftwareInstallation/SoftwareInstallationView/ReportOrders.rdlc b/SoftwareInstallation/SoftwareInstallationView/ReportOrders.rdlc index f79c8a5..996f31d 100644 --- a/SoftwareInstallation/SoftwareInstallationView/ReportOrders.rdlc +++ b/SoftwareInstallation/SoftwareInstallationView/ReportOrders.rdlc @@ -424,7 +424,6 @@ 2pt - true @@ -484,7 +483,7 @@ 2.48391cm 0.55245cm 1.2cm - 19.84713cm + 19.84714cm 2