From 0952127fdefbb08a990990204693997d84709fb0 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Wed, 16 Oct 2024 15:32:55 +0200 Subject: [PATCH] KlinikumWerraMeissner/CollectiveBillingReportTabIntern.cs - Bugfix interne Ansicht --- .../KlinikumWerraMeissner/CollectiveBillingReportTabIntern.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ReportImp/KlinikumWerraMeissner/CollectiveBillingReportTabIntern.cs b/ReportImp/KlinikumWerraMeissner/CollectiveBillingReportTabIntern.cs index 904446610..867b636d8 100644 --- a/ReportImp/KlinikumWerraMeissner/CollectiveBillingReportTabIntern.cs +++ b/ReportImp/KlinikumWerraMeissner/CollectiveBillingReportTabIntern.cs @@ -93,8 +93,10 @@ namespace KlinikumWerraMeissner newItem.CustomerFirstname = ii.CustomerFirstname; newItem.Hours = ii.Hours; newItem.UnitCount = ii.UnitCount; + // die HourlyRate ist schon reduziert - wieder zurückrechnen + var orgHourlyRate = Math.Round(ii.NetAmount.Value / ii.Hours.Value, 2, MidpointRounding.AwayFromZero); + newItem.HourlyRate = (decimal)Math.Round((double)orgHourlyRate * (double)anteil / 100, 2, MidpointRounding.AwayFromZero); newItem.NetAmount = (decimal)Math.Round((double)ii.NetAmount * (double)anteil / 100, 2, MidpointRounding.AwayFromZero); - newItem.HourlyRate = (decimal)Math.Round((double)ii.HourlyRate * (double)anteil / 100, 2, MidpointRounding.AwayFromZero); newItem.GrossAmount = String.Format("{0:c2}", ii.NetAmount * anteil / 100); newItem.ServiceDescription = ii.ServiceDescription; newItem.Notice = employeeName;