From 84f5927e68ae98461dd21ea5adce3267000c03a2 Mon Sep 17 00:00:00 2001 From: Joellensilva Date: Mon, 5 Feb 2024 16:15:02 -0300 Subject: [PATCH] adicionando indenizacao de ferias --- go.mod | 2 +- go.sum | 2 ++ main.go | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 6d0c09c..3030547 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.18 require ( github.com/dadosjusbr/proto v0.0.0-20221212025627-91c60aa3cd12 - github.com/dadosjusbr/storage v0.0.0-20240122222419-3472161adddb + github.com/dadosjusbr/storage v0.0.0-20240205184937-b9805fd9200e github.com/kelseyhightower/envconfig v1.4.0 google.golang.org/protobuf v1.28.1 ) diff --git a/go.sum b/go.sum index d93b0a6..6f62891 100644 --- a/go.sum +++ b/go.sum @@ -33,6 +33,8 @@ github.com/dadosjusbr/storage v0.0.0-20231202000028-bee3d3aef9a9 h1:nn0jgylIokUL github.com/dadosjusbr/storage v0.0.0-20231202000028-bee3d3aef9a9/go.mod h1:PszGy6CDoG3kNLjIsCmwD3MAWED7xL7U/OWj7ajsiHc= github.com/dadosjusbr/storage v0.0.0-20240122222419-3472161adddb h1:yCHr4P7e8kBCd7vEuqoaW7r737ukj6UGFXtwgERzNmg= github.com/dadosjusbr/storage v0.0.0-20240122222419-3472161adddb/go.mod h1:PszGy6CDoG3kNLjIsCmwD3MAWED7xL7U/OWj7ajsiHc= +github.com/dadosjusbr/storage v0.0.0-20240205184937-b9805fd9200e h1:3cH5bjKv7JDuGSAU+7WCdtM/ov0pv/6XzTWhTMbyUgc= +github.com/dadosjusbr/storage v0.0.0-20240205184937-b9805fd9200e/go.mod h1:PszGy6CDoG3kNLjIsCmwD3MAWED7xL7U/OWj7ajsiHc= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/main.go b/main.go index a418aa4..2a07705 100644 --- a/main.go +++ b/main.go @@ -405,6 +405,8 @@ func aggregatingItems(itemValues map[string]float64) models.ItemSummary { itemSummary.FoodAllowance += value case "licenca-premio": itemSummary.BonusLicense += value + case "indenizacao-de-ferias": + itemSummary.VacationCompensation += value } others = 0 break