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;