37 lines
993 B
C#
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);
|
|
|
|
}
|
|
|
|
|
|
}
|
|
}
|