PsychosozialerTraegervereinReports/RechnungSonstige - Bugfix nach letzter Änderung, Faktor nicht doppelt aufrechnen

This commit is contained in:
2026-03-20 12:54:15 +01:00
parent b37b9ae9ce
commit 944bf3edd2

View File

@@ -29,27 +29,27 @@ namespace BeWo.PsychosozialerTraegervereinReports
{
foreach (var i in p.ServiceInvoiceItems)
{
if (i.HourlyRate.HasValue)
{
hourlyRate = i.HourlyRate.Value;
//if (i.HourlyRate.HasValue)
//{
// hourlyRate = i.HourlyRate.Value;
if (!String.IsNullOrEmpty(i.RateFactor))
{
var rfStr = i.RateFactor.Replace("%", "").Replace(",00", "").Trim();
int rfInt = 0;
Int32.TryParse(rfStr, out rfInt);
rateFactor = (100m + rfInt)/100m;
// if (!String.IsNullOrEmpty(i.RateFactor))
// {
// var rfStr = i.RateFactor.Replace("%", "").Replace(",00", "").Trim();
// int rfInt = 0;
// Int32.TryParse(rfStr, out rfInt);
// rateFactor = (100m + rfInt)/100m;
if (i.Hours.HasValue)
i.Hours= i.Hours.Value * rateFactor;
// if (i.Hours.HasValue)
// i.Hours= i.Hours.Value * rateFactor;
}
}
// }
//}
}
}
}
}
hours *= rateFactor;
//hours *= rateFactor;
if (!String.IsNullOrEmpty(pRO.CustomerSalutation) && pRO.CustomerSalutation.ToLower() == "herr")
pRO.CustomerSalutation = "Herrn";