feat: categoria is_tax exclui impostos do denominador do savings_pct

savings_pct = (receita - despesas) / (receita - impostos).
Toggle IMPOSTO no CRUD de categorias; badge dourado na lista.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
2026-05-27 15:53:53 -03:00
co-authored by Claude Sonnet 4.6
parent 2cf6d94a03
commit 7dae05cabf
10 changed files with 90 additions and 35 deletions
+2
View File
@@ -7,6 +7,7 @@ type Category struct {
Name string `json:"name"`
Color string `json:"color"`
IsDefault bool `json:"is_default"`
IsTax bool `json:"is_tax"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
@@ -14,4 +15,5 @@ type Category struct {
type CategoryInput struct {
Name string `json:"name"`
Color string `json:"color"`
IsTax bool `json:"is_tax"`
}