Same layout as the Strom page: grid and dialog for the bills (warm and cold water in m3 and CHF, base costs; total m3 and CHF are computed), stored per mandator in water.json, and charts for consumption and total costs with the period toggle (bill, calendar year, half-year). The period grouping is now generic: ElectricityPeriod becomes BillPeriod<T> over IPeriodBill<T>, implemented by ElectricityBill and WaterBill. water.json can be edited in the JSON editor. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
17 lines
401 B
C#
17 lines
401 B
C#
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Schaad.Accounting.Models;
|
|
|
|
namespace Schaad.Accounting.Interfaces
|
|
{
|
|
public interface IWaterBillRepository
|
|
{
|
|
Task<List<WaterBill>> GetWaterBillListAsync();
|
|
|
|
Task SaveWaterBillAsync(WaterBill bill);
|
|
|
|
Task<WaterBill> GetWaterBillAsync(string id);
|
|
|
|
Task DeleteWaterBillAsync(string id);
|
|
}
|
|
}
|