KlinikumWerraMeissner/CollectiveBillingReportTabIntern.cs - Bugfix interne Ansicht
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user