SHKService/Invoicing/CollectiveInvoiceCreation - Filter auf String (ka) etwas generöser
This commit is contained in:
@@ -94,7 +94,7 @@ namespace SHKService.Invoicing
|
||||
};
|
||||
if (supportConceptApprovalPeriod.ServiceCategory.Name == "Fahrzeit")
|
||||
{
|
||||
if (cb2sc.SupportConcept.Customer.Person.LastNameFirstName.Contains("(ka)"))
|
||||
if (cb2sc.SupportConcept.Customer.Person.LastNameFirstName.ToLower().Contains("(ka"))
|
||||
{
|
||||
ii.AmountPerUnit = supportConceptApprovalPeriod.ApprovedBEPerInterval * AMOUNT_PER_KMKA;
|
||||
ii.ItemDescription = "Fahrzeiten KA";
|
||||
@@ -108,7 +108,7 @@ 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.Contains("(ka)"))
|
||||
if (!cb2sc.SupportConcept.Customer.Person.LastNameFirstName.ToLower().Contains("(ka"))
|
||||
{
|
||||
var LG = (decimal)GetLeistungsgruppe(supportConceptApprovalPeriod.ApprovedBEPerInterval);
|
||||
if (data.Count > 0 && data[0].AmountTotal != null)
|
||||
@@ -119,7 +119,7 @@ namespace SHKService.Invoicing
|
||||
ii.ItemDescription = "Qualifizierte Assistenz";
|
||||
ii.Notice = LG.ToString();
|
||||
}
|
||||
if (cb2sc.SupportConcept.Customer.Person.LastNameFirstName.Contains("(ka)"))
|
||||
if (cb2sc.SupportConcept.Customer.Person.LastNameFirstName.ToLower().Contains("(ka"))
|
||||
{
|
||||
ii.ItemDescription = "Kompensatorische Assistenz";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user