BUGeVReports: Korrektur von Stunden und Stundensatz der Fehlkontakte, die letztes Jahr notwendig war, bei aktuellen Rechnungen nicht mehr anwenden

This commit is contained in:
2024-06-03 20:13:40 +02:00
parent 54307c3217
commit b44d9d2ac4
2 changed files with 6 additions and 3 deletions

View File

@@ -0,0 +1 @@
DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v23.2, Version=23.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a

View File

@@ -29,9 +29,11 @@ namespace BeWo.BUGeVReports
if (pRO.FehlkontakteString != null && pRO.FehlkontakteString.Length > 0 && ii.RateFactor == 0)
{
ii.UnitCount = ii.UnitCount / ((2 - Convert.ToDecimal(pRO.RateFactor)) * 100) * 100;
ii.AmountPerUnit = ii.AmountPerUnit / 100 * ((2 - Convert.ToDecimal(pRO.RateFactor)) * 100);
if (pRO.InvoiceDate < new DateTime(2024, 1, 1))
{
ii.UnitCount = ii.UnitCount / ((2 - Convert.ToDecimal(pRO.RateFactor)) * 100) * 100;
ii.AmountPerUnit = ii.AmountPerUnit / 100 * ((2 - Convert.ToDecimal(pRO.RateFactor)) * 100);
}
Zwischensumme.Visible = true;
ii.DetailDescription = String.Format("{0:dd.MM.yyyy} bis {1:dd.MM.yyyy}: {2:0.##} h x {3:c}", ii.PeriodStartDate, ii.PeriodEndDate, ii.UnitCount, ii.AmountPerUnit);
ii.ItemDescription = "Fehlkontakte";