Co-authored-by: Claudio Schaad <c.schaad@pog.ch> Co-committed-by: Claudio Schaad <c.schaad@pog.ch>
18 lines
545 B
C#
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);
|
|
}
|
|
}
|