PsychosozialerTraegervereinReports/RechnungSonstige - Bugfix nach letzter Änderung, Faktor nicht doppelt aufrechnen
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user