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

namespace DiakonieKKKleve.Invoicing
{
	internal class DiakonieKKKleveInvoiceNumberGenerator : InvoiceNumberGenerator
	{
		public override string GetNextInvoiceNumber(int increment, InvoiceBase invoiceBase)
		{
			if (invoiceBase != null && invoiceBase.Type == InvoiceType.CustomerEquity)
			{
				return null;
			}
			return base.GetNextInvoiceNumber(increment, invoiceBase);
		}

	}
}
