Skip to content

Commit

Permalink
Merge pull request #209 from invopop/data-directory
Browse files Browse the repository at this point in the history
Centralising data in a single repository
  • Loading branch information
samlown authored Oct 9, 2023
2 parents a37a65c + bbeec00 commit d5d0cf4
Show file tree
Hide file tree
Showing 78 changed files with 16,333 additions and 16,331 deletions.
4 changes: 2 additions & 2 deletions bill/invoice_correct.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"fmt"
"strings"

"github.com/invopop/gobl/build"
"github.com/invopop/gobl/cal"
"github.com/invopop/gobl/cbc"
"github.com/invopop/gobl/data"
"github.com/invopop/gobl/head"
"github.com/invopop/gobl/schema"
"github.com/invopop/gobl/tax"
Expand Down Expand Up @@ -131,7 +131,7 @@ func (inv *Invoice) CorrectionOptionsSchema() (interface{}, error) {

// try to load the pre-generated schema, this is just way more efficient
// than trying to generate the configuration options manually.
data, err := build.Content.ReadFile("schemas/bill/correction-options.json")
data, err := data.Content.ReadFile("schemas/bill/correction-options.json")
if err != nil {
return nil, fmt.Errorf("loading schema option data: %w", err)
}
Expand Down
348 changes: 0 additions & 348 deletions build/regimes/co.json

This file was deleted.

Loading

0 comments on commit d5d0cf4

Please sign in to comment.