AccountingNext/Schaad.Accounting.Common/Interfaces/ISettingsService.cs
Claudio Schaad 1e9e19ebad Add "Wasser" page for the water bills
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>
2026-10-30 20:56:18 +01:00

37 lines
No EOL
885 B
C#

using System.Collections.Generic;
using Schaad.Accounting.Datasets;
namespace Schaad.Accounting.Interfaces
{
public interface ISettingsService
{
int GetYear();
void SetYear(int year);
bool TrySetYear(int year);
string GetMandator();
IReadOnlyList<string> GetMandators(int year);
void SetMandator(string mandator);
string GetBackupFilePath();
string GetUploadPath();
string GetCreditCardStatementPath();
string GetDbPath();
string GetLastYearDbPath();
/// <summary>
/// The mandator's folder, above the per-year folders. For data that is not kept per
/// year (e.g. the electricity and water bills, whose period doesn't align with calendar years).
/// </summary>
string GetMandatorPath();
SettingsDataset GetSettings();
}
}