SKFLeverkusenJuHi/ServiceInvoiceReport.cs - Finetuning nach Umstellung von Sammelrg
This commit is contained in:
@@ -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;
|
||||
//
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user