using System;
using System.Collections.Generic;
using System.Linq;
using BeWo.Data.Entities;
using BeWo.Service.Invoicing;
using BS.Shared.Core;
using BS.Shared.DataContracts;
using BS.Shared.DataContracts.Compact;
using BS.Shared.Services;

namespace BeWo.BrueckeABW
{
	public class DefaultInvoiceCreation : InvoiceCreation
	{
		public override IList<InvoiceItem> CreateSummaryInvoiceItems(IList<InvoiceItem> itemList, DateTimeSpan invoicePeriod, SupportConceptApprovalPeriod scap,
			Calculations calc)
		{
			var list = base.CreateSummaryInvoiceItems(itemList, invoicePeriod, scap, calc);

			if (list.Count == 1)
			{
				list[0].ItemDescription = "FLS";
			}
			return list;
		}
	}
}
