From 2e78b2f854ba7c14ea1efd5a67365c9a66bc2089 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Tue, 9 Jun 2026 15:26:59 +0200 Subject: [PATCH] VereinBeratungTherapie/Invoicing/CollectiveInvoiceCreation - Rundung KA auf Stundenpreis umgestellt SupportOID=164512 --- .../Invoicing/CollectiveInvoiceCreation.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ReportImp/VereinBeratungTherapie/Invoicing/CollectiveInvoiceCreation.cs b/ReportImp/VereinBeratungTherapie/Invoicing/CollectiveInvoiceCreation.cs index 9bc074094..d5d0b871a 100644 --- a/ReportImp/VereinBeratungTherapie/Invoicing/CollectiveInvoiceCreation.cs +++ b/ReportImp/VereinBeratungTherapie/Invoicing/CollectiveInvoiceCreation.cs @@ -240,8 +240,9 @@ namespace VereinBeratungTherapie.Invoicing // KA wird auf nächste halbe Stunde gerundet... lgMin = Math.Round(lgMin / 30) * 30; preisLG = data[0].AmountTotal.Value; - preis = Math.Round(preisLG / 60, 4, MidpointRounding.AwayFromZero); - ii.AmountPerUnit = Math.Round(preis * lgMin, 2, MidpointRounding.AwayFromZero); + //preis = Math.Round(preisLG / 60, 4, MidpointRounding.AwayFromZero); + //ii.AmountPerUnit = Math.Round(preis * lgMin, 2, MidpointRounding.AwayFromZero); + ii.AmountPerUnit = Math.Round(lgMin / 60 * preisLG, 2, MidpointRounding.AwayFromZero); ii.AmountTotal = ii.UnitCount * ii.AmountPerUnit; } }