diff --git a/BeWo/View/Detail/Accounting/GkvAbrechnungOverview.xaml.cs b/BeWo/View/Detail/Accounting/GkvAbrechnungOverview.xaml.cs index 1e0f02275..75bd05354 100644 --- a/BeWo/View/Detail/Accounting/GkvAbrechnungOverview.xaml.cs +++ b/BeWo/View/Detail/Accounting/GkvAbrechnungOverview.xaml.cs @@ -57,12 +57,6 @@ namespace BeWo.View.Detail.Accounting _NewGkvAbrechnungPopUpView.CreateButtonClicked += NewGkvAbrechnungPopUpViewCreateButtonClicked; _Viewmodel.DateTimeSpanFilter = yearMonthFilter.FilterSpan; - - var req = new GkvClientSumRequestJson(); - req.GkvSecretKey = "DfDGNGn72PKfSYxSUsmRdzuBtpR9novewlmYU3gsjiFgSkaZZeylUXlbO42cWNqiKgLdMUFtWUNZT962F1raQDR7HGUzCNYsFeC"; - req.Tenant = "demo"; - - var res = AppRequestSender.Send(req, "http://localhost:3777/Host/GkvAbrechnungClient.aspx"); } public DownloadLinkEngine DownloadLinkEngine { get; set; } diff --git a/DakotaUnitTest/App.config b/DakotaUnitTest/App.config index f2d389de2..118cb9c3c 100644 --- a/DakotaUnitTest/App.config +++ b/DakotaUnitTest/App.config @@ -12,7 +12,5 @@ - - \ No newline at end of file diff --git a/DakotaUnitTest/GkvSumServer.cs b/DakotaUnitTest/GkvSumServer.cs index 5545a38b6..ce3346788 100644 --- a/DakotaUnitTest/GkvSumServer.cs +++ b/DakotaUnitTest/GkvSumServer.cs @@ -26,12 +26,17 @@ namespace DakotaUnitTest ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; - var req = new GkvClientSumRequestJson(); - req.GkvSecretKey = ConfigurationManager.AppSettings.Get("GkvSecretKey"); - req.Tenant = "5000000000"; + req.GkvSecretKey = "DfDGNGn72PKfSYxSUsmRdzuBtpR9novewlmYU3gsjiFgSkaZZeylUXlbO42cWNqiKgLdMUFtWUNZT962F1raQDR7HGUzCNYsFeC"; + req.Tenant = "9005111114"; + req.Start = new DateTime(2025, 1, 30); + req.End = new DateTime(2025, 1, 30, 10, 0, 0); var res = AppRequestSender.Send(req, "https://app5.bewoplaner.de/service/GkvAbrechnungClient.aspx"); + + var test = res.Sum; + + Assert.IsTrue(res.Success); } } } diff --git a/Host/GkvAbrechnungClient.aspx.cs b/Host/GkvAbrechnungClient.aspx.cs index 485876c5d..c6493e368 100644 --- a/Host/GkvAbrechnungClient.aspx.cs +++ b/Host/GkvAbrechnungClient.aspx.cs @@ -129,12 +129,13 @@ namespace Host if(sum is decimal s) { response.Sum = s; - response.Success = true; } else { - response.Message = "no records"; + response.Message = "sum is null"; } + + response.Success = true; } catch (GkvException e) {