MH: DiakoneKKKleve Finanzauswertung Fehlkontakte Betrag korrigiert

This commit is contained in:
2026-04-21 14:36:49 +02:00
parent 0fa5e4cd6d
commit bcb8ee483c
3 changed files with 17 additions and 9 deletions

View File

@@ -342,9 +342,9 @@ namespace BeWo.DiakonieKKKleve
fkRo.StundenFehlkontakteInReportTimeSpan = f.StundenFehlkontakteInReportTimeSpan;
fkRo.StundenNichtFehlkontakteInReportTimeSpan = f.StundenNichtFehlkontakteInReportTimeSpan;
fkRo.CostBearerName = f.CostBearerName;
if (!f.CostBearerName.Contains("LVR") && !f.CostBearerName.Contains("Selbstzahler"))
{
f.AmountFehlkontakteInReportTimeSpan = f.AmountFehlkontakteInReportTimeSpan / 1.2m;
if ((f.CostBearerName.Contains("LVR") || f.CostBearerName.Contains("LWL")) && !f.CostBearerName.Contains("Selbstzahler"))
{
f.AmountFehlkontakteInReportTimeSpan = Math.Round(Math.Round(f.HourlyRate.Value * 0.8m, 2, MidpointRounding.AwayFromZero) * f.StundenFehlkontakteInReportTimeSpan, 2, MidpointRounding.AwayFromZero);
f.AmountInReportTimeSpan = fkRo.AmountFehlkontakteInReportTimeSpan + fkRo.AmountFehlkontakteInReportTimeSpan;
}
fkRo.AmountFehlkontakteInReportTimeSpan = f.AmountFehlkontakteInReportTimeSpan;

View File

@@ -18,12 +18,17 @@ namespace DiakonieKKKleve.Invoicing
//alle Preise außer LVR werden inkl. Faktor von denen eingetragen - funktioniert natürlich nicht für Fehlkontakte :-(
if (!scap.CostBearer2SupportConcept.CostBearer.Organisation.Name.Contains("LVR") && ii.ItemDescription.Contains("Fehlkontakt"))
{
ii.AmountPerUnit = ii.AmountPerUnit / 1.2m;
ii.AmountTotal = ii.AmountPerUnit * ii.UnitCount;
ii.GrossAmountTotal = ii.AmountTotal;
}
// MH, 21.04.2026: Scheinbar werden die Stundensätze jetzt normal eingetragen, bei FK nur noch runden
//ii.AmountPerUnit = ii.AmountPerUnit / 1.2m;
//ii.AmountTotal = ii.AmountPerUnit * ii.UnitCount;
//ii.GrossAmountTotal = ii.AmountTotal;
return ii;
ii.AmountPerUnit = Math.Round(ii.AmountPerUnit.Value, 2, MidpointRounding.AwayFromZero);
ii.AmountTotal = Math.Round(ii.AmountPerUnit.Value * ii.UnitCount.Value, 2, MidpointRounding.AwayFromZero);
ii.GrossAmountTotal = ii.AmountTotal;
}
return ii;
}
public override IList<InvoiceItem> CreateSummaryInvoiceItems(IList<InvoiceItem> itemList, DateTimeSpan invoicePeriod, SupportConceptApprovalPeriod scap,

View File

@@ -18,7 +18,10 @@ namespace DiakonieKKKleve.Invoicing
{
var csc = item.Key;
var sc = DAOFactory.GenericDAO.LoadByID<SupportConcept>(csc.SupportConceptOid);
if (sc.Customer.Person.FirstNameLastName.Contains("Skorus"))
{
}
foreach (var cb2sc in sc.CostBearer2SupportConceptList)
{
if (cb2sc.CostBearer.Organisation != null && cb2sc.CostBearer.Organisation.Name.Contains("§67"))