From fc3cade6decfd030d6c1a78597aad3a88ddd5a9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luismi=20Cavall=C3=A9?= Date: Fri, 18 Oct 2024 13:05:59 +0000 Subject: [PATCH] Add extension for EsigibilitaIVA to it-sdi addon --- CHANGELOG.md | 5 +++-- addons/it/sdi/extensions.go | 35 ++++++++++++++++++++++++++++++++--- 2 files changed, 35 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 55b5b25c..8bea51af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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] diff --git a/addons/it/sdi/extensions.go b/addons/it/sdi/extensions.go index d7ec0ab4..34602bb3 100644 --- a/addons/it/sdi/extensions.go +++ b/addons/it/sdi/extensions.go @@ -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{ @@ -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. `), @@ -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 @@ -695,7 +695,6 @@ var extensions = []*cbc.KeyDefinition{ }, }, }, - { Key: ExtKeyPaymentMeans, Name: i18n.String{ @@ -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", + }, + }, + }, + }, }