Skip to content

Commit

Permalink
Merge pull request #271 from invopop/release-0.72
Browse files Browse the repository at this point in the history
Release v0.72.0
  • Loading branch information
samlown authored Apr 18, 2024
2 parents 69f6908 + 7e884dd commit 4e26abf
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 43 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ 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] - yyyy-mm-dd
## [v0.72.0] - 2024-04-18

Pending release notes...
Refactoring region handling for Portugal VAT and now supporting `-` in `cbc.Code`.

### Added

Expand All @@ -21,6 +21,8 @@ Pending release notes...

### Fixed

- none

## [v0.71.0] - 2024-04-08

New number formatting support! Expect some possible breaking SDK changes with the `num` packages. No significant schema changes.
Expand Down
89 changes: 50 additions & 39 deletions data/regimes/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,31 +65,39 @@
"en": "Invoice-receipt",
"pt": "Fatura-recibo"
}
},
}
],
"extensions": [
{
"key": "azores",
"key": "pt-region",
"name": {
"en": "Azores",
"pt": "Açores"
"en": "Region Code",
"pt": "Código da Região"
},
"desc": {
"en": "Tag for use when the invoice is issued in the Azores region with special local rates.",
"pt": "Tag para uso quando a fatura é emitida na região dos Açores com taxas locais especiais."
}
"codes": [
{
"code": "PT",
"name": {
"en": "Mainland Portugal",
"pt": "Portugal Continental"
}
},
{
"code": "PT-AC",
"name": {
"en": "Azores",
"pt": "Açores"
}
},
{
"code": "PT-MA",
"name": {
"en": "Madeira",
"pt": "Madeira"
}
}
]
},
{
"key": "madeira",
"name": {
"en": "Madeira",
"pt": "Madeira"
},
"desc": {
"en": "Tag for use when the invoice is issued in the Madeira region with special local rates.",
"pt": "Tag para uso quando a fatura é emitida na região da Madeira com taxas locais especiais."
}
}
],
"extensions": [
{
"key": "pt-exemption-code",
"name": {
Expand Down Expand Up @@ -381,16 +389,16 @@
},
"values": [
{
"tags": [
"azores"
],
"ext": {
"pt-region": "PT-AC"
},
"since": "2011-01-01",
"percent": "16.0%"
},
{
"tags": [
"madeira"
],
"ext": {
"pt-region": "PT-MA"
},
"since": "2011-01-01",
"percent": "22.0%"
},
Expand All @@ -411,16 +419,16 @@
},
"values": [
{
"tags": [
"azores"
],
"ext": {
"pt-region": "PT-AC"
},
"since": "2011-01-01",
"percent": "9.0%"
},
{
"tags": [
"madeira"
],
"ext": {
"pt-region": "PT-MA"
},
"since": "2011-01-01",
"percent": "12.0%"
},
Expand All @@ -441,16 +449,16 @@
},
"values": [
{
"tags": [
"azores"
],
"ext": {
"pt-region": "PT-AC"
},
"since": "2011-01-01",
"percent": "4.0%"
},
{
"tags": [
"madeira"
],
"ext": {
"pt-region": "PT-MA"
},
"since": "2011-01-01",
"percent": "5.0%"
},
Expand All @@ -477,6 +485,9 @@
"at-tax-code": "ISE"
}
}
],
"extensions": [
"pt-region"
]
}
]
Expand Down
2 changes: 1 addition & 1 deletion data/schemas/cbc/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"type": "string",
"maxLength": 24,
"minLength": 1,
"pattern": "^[A-Z0-9]+(\\.?[A-Z0-9]+)*$",
"pattern": "^[A-Z0-9]+([\\.\\-]?[A-Z0-9]+)*$",
"title": "Code",
"description": "Alphanumerical text identifier with upper-case letters, no whitespace, nor symbols."
}
Expand Down
5 changes: 5 additions & 0 deletions data/schemas/tax/regime.json
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@
"title": "Tags",
"description": "Only apply this rate if one of the tags is present in the invoice."
},
"ext": {
"$ref": "https://gobl.org/draft-0/tax/extensions",
"title": "Extensions",
"description": "Ext map of keys that can be used to filter to determine if the rate applies."
},
"since": {
"$ref": "https://gobl.org/draft-0/cal/date",
"title": "Since",
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.71.0"
const VERSION Version = "v0.72.0"

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

0 comments on commit 4e26abf

Please sign in to comment.