Skip to content

Commit

Permalink
Fixing spanish scenarios with correction types
Browse files Browse the repository at this point in the history
  • Loading branch information
samlown committed Feb 23, 2024
1 parent 9b3733b commit d30fa17
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
17 changes: 14 additions & 3 deletions regimes/es/scenarios.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,12 @@ var invoiceScenarios = &tax.ScenarioSet{
List: []*tax.Scenario{
// ** Invoice Document Types **
{
Types: []cbc.Key{bill.InvoiceTypeStandard, bill.InvoiceTypeCorrective},
Types: []cbc.Key{
bill.InvoiceTypeStandard,
bill.InvoiceTypeCorrective,
bill.InvoiceTypeCreditNote,
bill.InvoiceTypeDebitNote,
},
Codes: cbc.CodeMap{
KeyFacturaEInvoiceDocumentType: "FC", // default
},
Expand All @@ -113,13 +118,19 @@ var invoiceScenarios = &tax.ScenarioSet{
},
// ** Invoice Class **
{
Types: []cbc.Key{bill.InvoiceTypeStandard},
Types: []cbc.Key{
bill.InvoiceTypeStandard,
},
Codes: cbc.CodeMap{
KeyFacturaEInvoiceClass: "OO", // Original Invoice
},
},
{
Types: []cbc.Key{bill.InvoiceTypeCorrective},
Types: []cbc.Key{
bill.InvoiceTypeCorrective,
bill.InvoiceTypeCreditNote,
bill.InvoiceTypeDebitNote,
},
Codes: cbc.CodeMap{
KeyFacturaEInvoiceClass: "OR", // Corrective
},
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.67.8"
const VERSION Version = "v0.67.9"

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

0 comments on commit d30fa17

Please sign in to comment.