KlinikumWerraMeissner/CollectiveBillingReportTabIntern.cs - Bugfix interne Ansicht

This commit is contained in:
2024-10-16 15:32:55 +02:00
parent 94f839f19b
commit 0952127fde

View File

@@ -93,8 +93,10 @@ namespace KlinikumWerraMeissner
newItem.CustomerFirstname = ii.CustomerFirstname; newItem.CustomerFirstname = ii.CustomerFirstname;
newItem.Hours = ii.Hours; newItem.Hours = ii.Hours;
newItem.UnitCount = ii.UnitCount; 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.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.GrossAmount = String.Format("{0:c2}", ii.NetAmount * anteil / 100);
newItem.ServiceDescription = ii.ServiceDescription; newItem.ServiceDescription = ii.ServiceDescription;
newItem.Notice = employeeName; newItem.Notice = employeeName;