ServiceInvoiceRO - Ergänzung Mandator
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user