Skip to content

Update to gobl 300#28

Closed
pmenendz wants to merge 4 commits into
mainfrom
update-gobl
Closed

Update to gobl 300#28
pmenendz wants to merge 4 commits into
mainfrom
update-gobl

Conversation

@pmenendz

@pmenendz pmenendz commented Oct 1, 2025

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request updates the project to use GOBL version 0.300.2, which introduces changes to tax structure and API. The update modifies how taxes are represented in invoices, particularly replacing the rate field with separate key and rate fields for better tax categorization.

  • Updated GOBL dependency from v0.214.1 to v0.300.2
  • Modified tax structure throughout test data files to use separate key and rate fields
  • Updated code references to use new tax constants and extension keys
  • Added documentation badge to README

Reviewed Changes

Copilot reviewed 17 out of 18 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
go.mod Updated GOBL dependency and other package versions
test/data/*.json Updated tax structures to use new key and rate field format
doc/lines_test.go Updated tax rate constant reference
doc/breakdown_test.go Updated tax constants and extension key references
doc/breakdown.go Updated extension key references
README.md Added DeepWiki documentation badge

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread doc/breakdown_test.go Outdated
pmenendz and others added 3 commits October 1, 2025 12:57
"rate": "reduced",
"percent": "9.0%",
"ext": {
"es-tbai-exemption": "RL",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the rate reduced is getting an exemption code?

@cavalle cavalle Oct 2, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are other cases like this in the other json files. Please, review. It might be a bug in the GOBL addon.

Comment thread doc/breakdown_test.go
&tax.Combo{
Category: tax.CategoryVAT,
Rate: tax.RateExempt,
Rate: tax.KeyExport,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this set the Key instead of the Rate which is now reserved for general, reduced, intermediate

Comment thread doc/breakdown_test.go
Category: tax.CategoryVAT,
Rate: tax.RateExempt,
Ext: tax.Extensions{tbai.ExtKeyExemption: "E1"},
Rate: tax.KeyExempt,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this set the Key instead of the Rate which is now reserved for general, reduced, intermediate…

@pmenendz

Copy link
Copy Markdown
Contributor Author

This PR is replaced by this one: #30

@pmenendz pmenendz closed this Dec 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants