AccountingNext/Schaad.Accounting.Common/Models/IPeriodBill.cs
Claudio Schaad eefbfff3eb Add "Wasser" page for the water bills (#11)
Co-authored-by: Claudio Schaad <c.schaad@pog.ch>
Co-committed-by: Claudio Schaad <c.schaad@pog.ch>
2026-10-30 20:19:07 +00:00

18 lines
545 B
C#

using System;
namespace Schaad.Accounting.Models
{
/// <summary>
/// A bill over a period (e.g. the yearly NeoVac electricity or water bill), so it can be
/// grouped into calendar periods by <see cref="BillPeriod{T}"/>.
/// </summary>
public interface IPeriodBill<in T>
{
DateOnly PeriodFrom { get; set; }
DateOnly PeriodTo { get; set; }
/// <summary>Adds <paramref name="share"/> (0..1) of the other bill's values to this one.</summary>
void AddShare(T other, decimal share);
}
}