ServiceInvoiceRO - Ergänzung Mandator

This commit is contained in:
2026-03-31 16:05:16 +02:00
parent 63ffe6f388
commit 2dc1215e14

View File

@@ -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<ServiceRecordDC> 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;