SHKService/Invoicing/CollectiveInvoiceCreation - LG auf für KA
This commit is contained in:
@@ -110,18 +110,18 @@ namespace SHKService.Invoicing
|
||||
}
|
||||
else
|
||||
{
|
||||
ii.AmountPerUnit = supportConceptApprovalPeriod.ApprovedBEPerInterval * (decimal)Math.Round((double)data[0].AmountTotal / 60, 4, MidpointRounding.AwayFromZero);
|
||||
if (!cb2sc.SupportConcept.Customer.Person.LastNameFirstName.ToLower().Contains("(ka"))
|
||||
// ursprünglich Eingabe der LG-Minuten vereinbart. Kommt vielleicht für KA wieder
|
||||
//ii.AmountPerUnit = supportConceptApprovalPeriod.ApprovedBEPerInterval * (decimal)Math.Round((double)data[0].AmountTotal / 60, 4, MidpointRounding.AwayFromZero);
|
||||
|
||||
var LG = (decimal)GetLeistungsgruppe(supportConceptApprovalPeriod.ApprovedBEPerInterval);
|
||||
if (data.Count > 0 && data[0].AmountTotal != null)
|
||||
{
|
||||
var LG = (decimal)GetLeistungsgruppe(supportConceptApprovalPeriod.ApprovedBEPerInterval);
|
||||
if (data.Count > 0 && data[0].AmountTotal != null)
|
||||
{
|
||||
ii.AmountPerUnit = (decimal)Math.Round((double)data[0].AmountTotal * Math.Round((double)LG / 60, 2, MidpointRounding.AwayFromZero), 2, MidpointRounding.AwayFromZero);
|
||||
//ii.AmountPerUnit = LG * (decimal)Math.Round((double)data[0].AmountTotal / 60, 4, MidpointRounding.AwayFromZero);
|
||||
}
|
||||
ii.ItemDescription = "Qualifizierte Assistenz";
|
||||
ii.Notice = LG.ToString();
|
||||
ii.AmountPerUnit = (decimal)Math.Round((double)data[0].AmountTotal * Math.Round((double)LG / 60, 2, MidpointRounding.AwayFromZero), 2, MidpointRounding.AwayFromZero);
|
||||
//ii.AmountPerUnit = LG * (decimal)Math.Round((double)data[0].AmountTotal / 60, 4, MidpointRounding.AwayFromZero);
|
||||
}
|
||||
ii.ItemDescription = "Qualifizierte Assistenz";
|
||||
ii.Notice = LG.ToString();
|
||||
|
||||
if (cb2sc.SupportConcept.Customer.Person.LastNameFirstName.ToLower().Contains("(ka"))
|
||||
{
|
||||
ii.ItemDescription = "Kompensatorische Assistenz";
|
||||
@@ -157,7 +157,7 @@ namespace SHKService.Invoicing
|
||||
private object GetLeistungsgruppe(decimal? approvedBEPerInterval)
|
||||
{
|
||||
// alle Leistungen werden in Stufen - sogenannten Leistungsgruppen abgerechnet -
|
||||
// bei der QA tragen sie die tatsächlich bewilligten Minuten ein, um zu wissen wie viel sie leisten müssen - Abrechnung braucht aber LG
|
||||
// bei der QA/KA tragen sie die tatsächlich bewilligten Minuten ein, um zu wissen wie viel sie leisten müssen - Abrechnung braucht aber LG
|
||||
decimal lg = 60;
|
||||
if (approvedBEPerInterval == null || approvedBEPerInterval.Value < 91)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user