MH: Die Brücke Rechnungswahl verbessert

This commit is contained in:
2025-12-02 17:09:14 +01:00
parent 640a64cfb8
commit 3dd54c2cf9

View File

@@ -20,7 +20,8 @@ namespace DieBrueckeHilfeUndHalt.Invoicing
{
var csc = item.Key;
var sc = DAOFactory.GenericDAO.GetByID<SupportConcept>(csc.SupportConceptOid);
var ap = sc.CostBearer2SupportConceptList.FirstOrDefault(cb2sc => csc.CostBearer.Contains(cb2sc.CostBearer.Organisation.Name));
var ap = sc.CostBearer2SupportConceptList.FirstOrDefault(cb2sc => csc.CostBearer.Contains(cb2sc.CostBearer.Organisation.Name)
&& csc.StartDate == cb2sc.StartDate && csc.EndDate == cb2sc.EndDate);
if (ap != null)
{
if (ap.CostBearer.Organisation.Function != null && ap.CostBearer.Organisation.Function.Value.ToLower().Contains("neue vereinbarung"))