Skip to content

Commit

Permalink
Preparing release 0.203
Browse files Browse the repository at this point in the history
  • Loading branch information
cavalle committed Oct 21, 2024
1 parent 46e9b2c commit 74c80f7
Show file tree
Hide file tree
Showing 5 changed files with 176 additions and 7 deletions.
12 changes: 6 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ All notable changes to GOBL will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). See also the [GOBL versions](https://docs.gobl.org/overview/versions) documentation site for more details.

## [Unreleased]
## [v0.203.0]

### Added

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

### Fixed

- `bill.Invoice` - remove empty taxes instances.
- `tax.Identity` - support Calculate method to normalize IDs.
- `tax.Regime` - properly set regime when alternative codes is given.
- `bill.Invoice`: remove empty taxes instances.
- `tax.Identity`: support Calculate method to normalize IDs.
- `tax.Regime`: properly set regime when alternative codes is given.

## [v0.202.0]

Expand Down
30 changes: 30 additions & 0 deletions data/addons/it-sdi-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -890,6 +890,36 @@
}
}
]
},
{
"key": "it-sdi-vat-liability",
"name": {
"en": "VAT Liability",
"it": "Esigibilità dell'IVA"
},
"values": [
{
"value": "I",
"name": {
"en": "Immediate",
"it": "Immediata"
}
},
{
"value": "D",
"name": {
"en": "Deferred",
"it": "Differita"
}
},
{
"value": "S",
"name": {
"en": "Split Payment",
"it": "Scissione dei pagamenti"
}
}
]
}
],
"tags": [
Expand Down
135 changes: 135 additions & 0 deletions data/regimes/br.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
{
"$schema": "https://gobl.org/draft-0/tax/regime-def",
"name": {
"en": "Brazil",
"pt": "Brasil"
},
"time_zone": "America/Sao_Paulo",
"country": "BR",
"currency": "BRL",
"tags": [
{
"schema": "bill/invoice",
"list": [
{
"key": "simplified",
"name": {
"de": "Vereinfachte Rechnung",
"en": "Simplified Invoice",
"es": "Factura Simplificada",
"it": "Fattura Semplificata"
},
"desc": {
"de": "Wird für B2C-Transaktionen verwendet, wenn die Kundendaten nicht verfügbar sind. Bitte wenden Sie sich an die örtlichen Behörden, um die Grenzwerte zu ermitteln.",
"en": "Used for B2C transactions when the client details are not available, check with local authorities for limits.",
"es": "Usado para transacciones B2C cuando los detalles del cliente no están disponibles, consulte con las autoridades locales para los límites.",
"it": "Utilizzato per le transazioni B2C quando i dettagli del cliente non sono disponibili, controllare con le autorità locali per i limiti."
}
},
{
"key": "reverse-charge",
"name": {
"de": "Umkehr der Steuerschuld",
"en": "Reverse Charge",
"es": "Inversión del Sujeto Pasivo",
"it": "Inversione del soggetto passivo"
}
},
{
"key": "self-billed",
"name": {
"de": "Rechnung durch den Leistungsempfänger",
"en": "Self-billed",
"es": "Facturación por el destinatario",
"it": "Autofattura"
}
},
{
"key": "customer-rates",
"name": {
"de": "Kundensätze",
"en": "Customer rates",
"es": "Tarifas aplicables al destinatario",
"it": "Aliquote applicabili al destinatario"
}
},
{
"key": "partial",
"name": {
"de": "Teilweise",
"en": "Partial",
"es": "Parcial",
"it": "Parziale"
}
}
]
}
],
"corrections": [
{
"schema": "bill/invoice",
"types": [
"credit-note"
]
}
],
"categories": [
{
"code": "ISS",
"name": {
"en": "ISS",
"pt": "ISS"
},
"title": {
"en": "Municipal Service Tax",
"pt": "Imposto Sobre Serviços"
}
},
{
"code": "ICMS",
"name": {
"en": "ICMS",
"pt": "ICMS"
},
"title": {
"en": "State value-added tax",
"pt": "Imposto sobre Circulação de Mercadorias e Serviços"
}
},
{
"code": "IPI",
"name": {
"en": "IPI",
"pt": "IPI"
},
"title": {
"en": "Federal value-added Tax",
"pt": "Imposto sobre Produtos Industrializados"
}
},
{
"code": "PIS",
"name": {
"en": "PIS",
"pt": "PIS"
},
"title": {
"en": "Social Integration Program",
"pt": "Programa de Integração Social"
},
"retained": true
},
{
"code": "COFINS",
"name": {
"en": "COFINS",
"pt": "COFINS"
},
"title": {
"en": "Contribution for the Financing of Social Security",
"pt": "Contribuição para o Financiamento da Seguridade Social"
},
"retained": true
}
]
}
4 changes: 4 additions & 0 deletions data/schemas/bill/invoice.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@
"const": "BE",
"title": "Belgium"
},
{
"const": "BR",
"title": "Brazil"
},
{
"const": "CA",
"title": "Canada"
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
type Version string

// VERSION is the current version of the GOBL library.
const VERSION Version = "v0.202.0"
const VERSION Version = "v0.203.0"

// Semver parses and returns semver
func (v Version) Semver() *semver.Version {
Expand Down

0 comments on commit 74c80f7

Please sign in to comment.