Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extension for EsigibilitaIVA to it-sdi addon #397

Merged
merged 3 commits into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
cavalle marked this conversation as resolved.
Show resolved Hide resolved
)

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",
},
},
},
},
}
Loading