Skip to content

Commit

Permalink
Use renamed extension
Browse files Browse the repository at this point in the history
  • Loading branch information
cavalle committed Oct 21, 2024
1 parent 5d56044 commit 888a9dc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.22
toolchain go1.22.5

require (
github.com/invopop/gobl v0.202.1-0.20241018130847-fc3cade6decf
github.com/invopop/gobl v0.202.1-0.20241021152920-7b87944f2161
github.com/invopop/xmldsig v0.8.0
github.com/lestrrat-go/libxml2 v0.0.0-20240521004304-a75c203ac627
github.com/spf13/cobra v1.8.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
github.com/invopop/gobl v0.202.1-0.20241018130847-fc3cade6decf h1:WJMnbrPhDaYaFmxUXi63ZKWgNkvAzybrr5p16jM2tdA=
github.com/invopop/gobl v0.202.1-0.20241018130847-fc3cade6decf/go.mod h1:DmPohPel8b3ta4nDKnXRNzWQlB89cN74e0/WwPUEZUU=
github.com/invopop/gobl v0.202.1-0.20241021152920-7b87944f2161 h1:UxdbBX6V2Kztdm6fnbCkL3pMp/10YHv0yUR/1ZjTPtg=
github.com/invopop/gobl v0.202.1-0.20241021152920-7b87944f2161/go.mod h1:DmPohPel8b3ta4nDKnXRNzWQlB89cN74e0/WwPUEZUU=
github.com/invopop/jsonschema v0.12.0 h1:6ovsNSuvn9wEQVOyc72aycBMVQFKz7cPdMJn10CvzRI=
github.com/invopop/jsonschema v0.12.0/go.mod h1:ffZ5Km5SWWRAIN6wbDXItl95euhFz2uON45H2qjYt+0=
github.com/invopop/validation v0.7.0 h1:NBPLqvYGmLZLQuk5jh0PbaBBetJW7f2VEk/BTWJkGBU=
Expand Down
2 changes: 1 addition & 1 deletion items.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func generateTaxSummary(inv *bill.Invoice) []*datiRiepilogo {
Natura: exemptExtensionCode(rateTotal.Ext),
ImponibileImporto: formatAmount(&rateTotal.Base),
Imposta: formatAmount(&rateTotal.Amount),
EsigibilitaIVA: rateTotal.Ext[sdi.ExtKeyVATCollect].String(),
EsigibilitaIVA: rateTotal.Ext[sdi.ExtKeyVATLiability].String(),
RiferimentoNormativo: findRiferimentoNormativo(rateTotal),
})
}
Expand Down
6 changes: 3 additions & 3 deletions test/data/invoice-simple.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"uuid": "679a2f25-7483-11ec-9722-7ea2cb436ff6",
"dig": {
"alg": "sha256",
"val": "31aa7d353238f099904c230ffa2a72725eaf6e2bbf81e4f0bed9ee4556dd0a02"
"val": "8847b795133eae7756b0aa2905df3b065d5f8bde1b8d593ccc988d2196489fc3"
}
},
"doc": {
Expand Down Expand Up @@ -150,7 +150,7 @@
"rate": "exempt",
"ext": {
"it-sdi-exempt": "N2.2",
"it-sdi-vat-collect": "S"
"it-sdi-vat-liability": "S"
}
}
],
Expand Down Expand Up @@ -203,7 +203,7 @@
"key": "exempt",
"ext": {
"it-sdi-exempt": "N2.2",
"it-sdi-vat-collect": "S"
"it-sdi-vat-liability": "S"
},
"base": "100.00",
"amount": "0.00"
Expand Down

0 comments on commit 888a9dc

Please sign in to comment.