diff --git a/Report/ReportObjects/ServiceInvoiceRO.cs b/Report/ReportObjects/ServiceInvoiceRO.cs index 480a07c8b..ebdb23c65 100644 --- a/Report/ReportObjects/ServiceInvoiceRO.cs +++ b/Report/ReportObjects/ServiceInvoiceRO.cs @@ -10,6 +10,8 @@ using BeWo.Data.Entities; using BeWo.Data.Access; using BS.Shared.DataContracts.Compact; using System.Diagnostics; +using BeWo.Service.DCEntityMapper; +using BeWo.Service.Configuration; namespace BeWo.Report.ReportObjects { @@ -65,6 +67,7 @@ namespace BeWo.Report.ReportObjects public string ApprovalDate { get; set; } public InvoiceBaseDC InvoiceBase { get; set; } public List BillableServiceRecords { get; set; } + public MandatorDC Mandator { get; set; } public static ServiceInvoiceRO Create(ServiceInvoiceDC pDC) { @@ -114,6 +117,8 @@ namespace BeWo.Report.ReportObjects } } + lResult.Mandator = MapperFactory.MandatorDC_Mandator.MapToNewDC(AppSettings.GetMandatorEntity()); + foreach (var iContactDC in pDC.InvoiceBase.RecipientContactInformations.Where(iContactDC => iContactDC.ContactType == ContactType.private_POBox)) { lResult.RecipientPoBox = "Postfach " + iContactDC.ContactValue;