Remove statistics when creating a new journal.

This commit is contained in:
James Cole
2025-09-26 19:38:26 +02:00
parent 8b09cfb8c9
commit 8f24ac4fcd
3 changed files with 32 additions and 8 deletions

View File

@@ -37,4 +37,6 @@ interface PeriodStatisticRepositoryInterface
public function saveStatistic(Model $model, int $currencyId, Carbon $start, Carbon $end, string $type, int $count, string $amount): PeriodStatistic;
public function allInRangeForModel(Model $model, Carbon $start, Carbon $end): Collection;
public function deleteStatisticsForModel(Model $model, Carbon $date): void;
}