Änderung Bew FLS ohne Assistenz
This commit is contained in:
@@ -52,5 +52,23 @@ namespace RatPlusTat.Invoicing
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
public override void CalculateSettlementInvoiceApprovedAmounts(Settlement2DC si, SupportConceptCostBearerRelDC relDC, Calculations calc)
|
||||
{
|
||||
si.ApprovedFLSWeekly = 0;
|
||||
si.ApprovedFLS = 0;
|
||||
foreach (var sp in relDC.ApprovalPeriodList)
|
||||
{
|
||||
if (sp.ServiceCategory == null || !sp.ServiceCategory.Name.Contains("Assistenz"))
|
||||
{
|
||||
si.ApprovedFLSWeekly += calc.GetApprovedHoursPerWeek(sp, relDC.CostBearer.CostRatePeriods) ?? 0m;
|
||||
|
||||
decimal flsTotal = calc.GetApprovedHoursTotal(sp, relDC.CostBearer.CostRatePeriods) ?? 0m;
|
||||
flsTotal = Math.Round(flsTotal, 2, MidpointRounding.AwayFromZero);
|
||||
|
||||
si.ApprovedFLS += flsTotal;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user