AWOMuensterlandRecklinghausen/SbdRechnung2024.cs - Anpassung Text bei Differenzrechnung

This commit is contained in:
2024-09-25 09:41:27 +02:00
parent 95f4064433
commit e5228a08ae

View File

@@ -27,12 +27,10 @@ namespace AWOMuensterlandRecklinghausen
public void SetReportDataSource(ServiceInvoiceRO pRO)
{
//CreateAbrechnungsItems(pRO);
SetzeEmpfaengerAdresse(pRO);
SetzeBetraege(pRO);
this.bindingSource1.DataSource = pRO;
}
private void SetzeBetraege(ServiceInvoiceRO pRO)
@@ -87,17 +85,10 @@ namespace AWOMuensterlandRecklinghausen
{
if (!String.IsNullOrEmpty(ii.ServiceDescription) && ii.ServiceDescription.StartsWith("Rechnungsdifferenz")
&& pRO.InvoiceBase.SupportConceptOid.HasValue)
{
var sc = DAOFactory.GenericDAO.GetByID<SupportConcept>(pRO.InvoiceBase.SupportConceptOid.Value);
if (sc != null)
{
if (!pRO.Notice.IsNullOrEmpty())
{
var cb2sc = sc.CostBearer2SupportConceptList.Where(s => s.SupportConcept.Oid == pRO.InvoiceBase.SupportConceptOid.Value).FirstOrDefault();
var scap = cb2sc.ApprovalPeriodList.Where(ap => ap.ServiceCategory != null && ap.ServiceCategory.Name.Contains("Interne") &&
ap.StartDate < pRO.AccountingPeriodEnd && ap.EndDate > pRO.AccountingPeriodStart).FirstOrDefault();
if (!scap.Notice.IsNullOrEmpty())
{
lblEndtext.Text = scap.Notice + "\n \n" + lblEndtext.Text;
}
lblEndtext.Text = pRO.Notice + "\n \n" + lblEndtext.Text;
}
}
}