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; } }