BUGeVReports: Korrektur von Stunden und Stundensatz der Fehlkontakte, die letztes Jahr notwendig war, bei aktuellen Rechnungen nicht mehr anwenden
This commit is contained in:
@@ -0,0 +1 @@
|
||||
DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v23.2, Version=23.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user