using System;
using System.Collections.Generic;

using BeWo.Data.Entities;
using BeWo.Service.Invoicing;

using BS.Shared.Core;
using BS.Shared.DataContracts.Compact;

namespace LWVEingliederungshilfe
{
	public class ServiceInvoiceCreation : InvoiceCreation
	{
		private DateTime? accountingPeriodStart;
		private DateTime? accountingPeriodEnd;

		public override void SetInvoiceBaseData(int invoiceCounter, ServiceInvoice invoice, CostBearer costBearer, DateTimeSpan invoicePeriod, IList<CompactSupportConceptDC> supportConceptList)
		{
			if (invoicePeriod != null)
			{
				accountingPeriodStart = invoicePeriod.StartDate;
				accountingPeriodEnd = invoicePeriod.EndDate;
			}

			base.SetInvoiceBaseData(invoiceCounter, invoice, costBearer, invoicePeriod, supportConceptList);
		}
	}
}
