Skip to content

Commit

Permalink
Add extension for EsigibilitaIVA to it-sdi addon
Browse files Browse the repository at this point in the history
  • Loading branch information
cavalle committed Oct 18, 2024
1 parent dc9192c commit fc3cade
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 5 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

### Added

- `uuid` - SQL library compatibility for type conversion.
- `uuid`: SQL library compatibility for type conversion.
- `it-sdi-v1`: added `it-sdi-vat-collect` extension for EsigibilitaIVA.

### Fixed

- `bill.Invoice` - remove empty taxes instances.
- `bill.Invoice`: remove empty taxes instances.

## [v0.202.0]

Expand Down
35 changes: 32 additions & 3 deletions addons/it/sdi/extensions.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const (
ExtKeyExempt cbc.Key = "it-sdi-exempt"
ExtKeyRetained cbc.Key = "it-sdi-retained"
ExtKeyPaymentMeans cbc.Key = "it-sdi-payment-means"
ExtKeyVATCollect cbc.Key = "it-sdi-vat-collect"
)

var extensions = []*cbc.KeyDefinition{
Expand All @@ -29,7 +30,7 @@ var extensions = []*cbc.KeyDefinition{
Code used to describe the transmission format of the invoice. By default
the value "FPR12" is used unless the user explicitly sets the value
to something else.
Normally this will only be needed when the invoice is to be sent to governmental
bodies and must use the "FPA12" format.
`),
Expand Down Expand Up @@ -458,7 +459,6 @@ var extensions = []*cbc.KeyDefinition{
},
},
},

{
// Retained reason code determined from the "CausalePagamento" field from FatturaPA.
// Source: https://www.agenziaentrate.gov.it/portale/documents/20143/4115385/CU_istr_2022.pdf
Expand Down Expand Up @@ -695,7 +695,6 @@ var extensions = []*cbc.KeyDefinition{
},
},
},

{
Key: ExtKeyPaymentMeans,
Name: i18n.String{
Expand Down Expand Up @@ -866,4 +865,34 @@ var extensions = []*cbc.KeyDefinition{
},
},
},
{
Key: ExtKeyVATCollect,
Name: i18n.String{
i18n.EN: "VAT Collection",
i18n.IT: "Esigibilità dell'IVA",
},
Values: []*cbc.ValueDefinition{
{
Value: "I",
Name: i18n.String{
i18n.EN: "Immediate",
i18n.IT: "Immediata",
},
},
{
Value: "D",
Name: i18n.String{
i18n.EN: "Deferred",
i18n.IT: "Differita",
},
},
{
Value: "S",
Name: i18n.String{
i18n.EN: "Split Payment",
i18n.IT: "Scissione dei pagamenti",
},
},
},
},
}

0 comments on commit fc3cade

Please sign in to comment.