From 2fafaf2e52a19e0ed91c6b88cf4cbc3df277ec92 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Mon, 15 Jan 2024 17:48:36 +0100 Subject: [PATCH] SHKService/Invoicing/CollectiveInvoiceCreation Rundung LWV --- ReportImp/SHKService/Invoicing/CollectiveInvoiceCreation.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ReportImp/SHKService/Invoicing/CollectiveInvoiceCreation.cs b/ReportImp/SHKService/Invoicing/CollectiveInvoiceCreation.cs index 814cc8f28..c07ee9e85 100644 --- a/ReportImp/SHKService/Invoicing/CollectiveInvoiceCreation.cs +++ b/ReportImp/SHKService/Invoicing/CollectiveInvoiceCreation.cs @@ -106,7 +106,7 @@ namespace SHKService.Invoicing } else { - ii.AmountPerUnit = supportConceptApprovalPeriod.ApprovedBEPerInterval / 60 * data[0].AmountTotal; + ii.AmountPerUnit = supportConceptApprovalPeriod.ApprovedBEPerInterval * (decimal)Math.Round((double)data[0].AmountTotal / 60, 4, MidpointRounding.AwayFromZero); if (cb2sc.SupportConcept.Customer.Person.LastNameFirstName.Contains("(ka)")) { ii.ItemDescription = "Kompensatorische Assistenz"; @@ -117,6 +117,7 @@ namespace SHKService.Invoicing } } + ii.AmountPerUnit = Math.Round((decimal)ii.AmountPerUnit, 2, MidpointRounding.AwayFromZero); ii.AmountTotal = ii.UnitCount * ii.AmountPerUnit; ii.GrossAmountTotal = ii.AmountTotal; serviceInvoicePeriod.InvoiceItemList.Add(ii);