Files
BeWoPlaner/Service/Invoicing/LHRodenkirchenInvoiceFactory.cs
2016-06-27 01:45:38 +02:00

37 lines
993 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BeWo.Data.Entities;
using BS.Shared.Core;
using BS.Shared.DataContracts;
using BS.Shared.DataContracts.Compact;
namespace BeWo.Service.Invoicing
{
[IDSpecificClass(Identifiers = new string[] { "9447917179" })]
public class LHRodenkirchenInvoiceFactory : InvoiceFactory
{
public override InvoiceCreation CreateInvoiceCreator(string specificId, string tenant, Dictionary<CompactSupportConceptDC, List<ServiceRecordDC>> supportConcepts2ServiceRecords)
{
foreach (var list in supportConcepts2ServiceRecords.Values)
{
foreach (var sr in list)
{
var sd = sr.ServiceDescription.Category;
if (!String.IsNullOrEmpty(sd.Name) && sd.Name.ToLower() == "fed")
{
return new FedFahrtkostenInvoiceCreation();
}
}
}
return base.CreateInvoiceCreator(specificId, tenant, supportConcepts2ServiceRecords);
}
}
}