2025-11-07 14:54:55 +01:00
|
|
|
|
using BS.Shared.DataContracts;
|
|
|
|
|
|
using BS.Shared.Interface;
|
2023-08-21 14:45:00 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
2023-10-17 12:53:39 +02:00
|
|
|
|
namespace Dakota
|
2023-08-21 14:45:00 +02:00
|
|
|
|
{
|
|
|
|
|
|
public static class DakotaExtensions
|
|
|
|
|
|
{
|
|
|
|
|
|
public static bool IsSozioTherapie(this ServiceInvoiceDC serviceDC)
|
|
|
|
|
|
=> IsSozioTherapie(serviceDC?.InvoiceBase);
|
|
|
|
|
|
|
|
|
|
|
|
public static bool IsSozioTherapie(this InvoiceBaseDC invoiceBase)
|
|
|
|
|
|
{
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
2023-09-21 10:42:22 +02:00
|
|
|
|
if (invoiceBase.InvoiceTitle?.ToLower().Contains("soziotherapie") ?? false)
|
2023-08-21 14:45:00 +02:00
|
|
|
|
return true;
|
|
|
|
|
|
|
2023-09-21 10:42:22 +02:00
|
|
|
|
if (invoiceBase.InvoiceId?.ToLower().Contains("soziotherapie") ?? false)
|
2023-08-21 14:45:00 +02:00
|
|
|
|
return true;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
catch(Exception e)
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
}
|
2023-10-17 12:53:39 +02:00
|
|
|
|
|
2025-11-07 14:54:55 +01:00
|
|
|
|
public static bool IsSozioTherapie(this IInvoiceBase invoiceBase)
|
2023-10-17 12:53:39 +02:00
|
|
|
|
{
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
if (invoiceBase.InvoiceTitle?.ToLower().Contains("soziotherapie") ?? false)
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
|
|
|
|
if (invoiceBase.InvoiceId?.ToLower().Contains("soziotherapie") ?? false)
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
catch (Exception e)
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
}
|
2023-08-21 14:45:00 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|