Implement cleaning to set all historic negative balances to zero

This commit is contained in:
2021-12-07 21:59:06 +00:00
parent edd1319222
commit a0ebdd01aa
7 changed files with 107 additions and 9 deletions

View File

@ -62,6 +62,7 @@ func (h *Handler) Serve() {
withBudget.GET("/budget/:budgetid/accounts", h.accounts)
withBudget.GET("/budget/:budgetid/account/:accountid", h.account)
withBudget.GET("/budget/:budgetid/clear", h.clearBudget)
withBudget.GET("/budget/:budgetid/clean-negative", h.cleanNegativeBudget)
api := router.Group("/api/v1")