Skip to content

Commit

Permalink
Merge pull request #397 from invopop/esigibilita
Browse files Browse the repository at this point in the history
Add extension for EsigibilitaIVA to it-sdi addon
  • Loading branch information
cavalle authored Oct 21, 2024
2 parents 15397b4 + 57d6cbf commit de93eb5
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

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

### Fixed

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"
ExtKeyVATLiability cbc.Key = "it-sdi-vat-liability"
)

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: ExtKeyVATLiability,
Name: i18n.String{
i18n.EN: "VAT Liability",
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 de93eb5

Please sign in to comment.