SKFLeverkusenJuHi/ServiceInvoiceReport.cs - Finetuning nach Umstellung von Sammelrg

This commit is contained in:
2025-05-30 13:49:20 +02:00
parent 9a30fa4bd5
commit f735fafb01
2 changed files with 8 additions and 6 deletions

View File

@@ -824,9 +824,7 @@ namespace SKFLeverkusenJuHi
this.xrLabel19.StylePriority.UseBackColor = false;
this.xrLabel19.StylePriority.UseFont = false;
this.xrLabel19.StylePriority.UseTextAlignment = false;
this.xrLabel19.Text = "[RecipientContactPerson] [CostBearer2SupportConcept.CostBearerContactPerson.First" +
"Name] [CostBearer2SupportConcept.CostBearerContactPerson.LastName][OrganisationC" +
"ostCenter]";
this.xrLabel19.Text = "[RecipientContactPerson][OrganisationCostCenter]";
this.xrLabel19.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
this.xrLabel19.WordWrap = false;
//

View File

@@ -83,13 +83,17 @@ namespace SKFLeverkusenJuHi
string region = "";
foreach (var sip in pRO.ServiceInvoicePeriods)
{
var cb2scListItem = sip.CostBearer2SupportConcept.SupportConcept.Customer.Customer2CostBearerList.Where(i => i.Oid == sip.CostBearer2SupportConcept.Oid).FirstOrDefault();
var cb2scListItem = sip.CostBearer2SupportConcept.SupportConcept.Customer.Customer2CostBearerList.Where(i => i.Oid == sip.CostBearer2SupportConcept.Oid || i.CostBearer.Oid == sip.CostBearer2SupportConcept.CostBearer.Oid).FirstOrDefault();
if (cb2scListItem != null)
{
region = cb2scListItem.Notice;
pRO.OrganisationCostCenter = ", " + region;
if (!String.IsNullOrEmpty(region))
pRO.OrganisationCostCenter = ", " + region;
}
if (String.IsNullOrEmpty(pRO.RecipientContactPerson) && sip.CostBearer2SupportConcept.CostBearerContactPerson != null) // falls bei Rechnungsstellung Fallführung noch nicht gesetzt war
{
pRO.RecipientContactPerson = sip.CostBearer2SupportConcept.CostBearerContactPerson.FirstNameLastName;
}
}
}
}