-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IT: Refactor fiscal code to party identities
- Loading branch information
Showing
26 changed files
with
877 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
run: | ||
timeout: "120s" | ||
|
||
output: | ||
formats: | ||
- format: "colored-line-number" | ||
|
||
linters: | ||
enable: | ||
- "gocyclo" | ||
- "unconvert" | ||
- "goimports" | ||
- "govet" | ||
#- "misspell" # doesn't handle multilanguage well | ||
- "nakedret" | ||
- "revive" | ||
- "goconst" | ||
- "unparam" | ||
- "gofmt" | ||
- "errname" | ||
- "zerologlint" | ||
|
||
linters-settings: | ||
staticcheck: | ||
# SAxxxx checks in https://staticcheck.io/docs/configuration/options/#checks | ||
# Default: ["*"] | ||
checks: ["all"] | ||
|
||
issues: | ||
exclude-use-default: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
{ | ||
"$schema": "https://gobl.org/draft-0/bill/invoice", | ||
"uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", | ||
"series": "SAMPLE", | ||
"code": "002", | ||
"currency": "EUR", | ||
"issue_date": "2023-05-21", | ||
"tax": { | ||
"prices_include": "VAT" | ||
}, | ||
"type": "standard", | ||
"supplier": { | ||
"tax_id": { | ||
"country": "IT", | ||
"code": "12345678903" | ||
}, | ||
"name": "Hotel California", | ||
"registration": { | ||
"capital": "50000.00", | ||
"currency": "EUR", | ||
"entry": "123456", | ||
"office": "RM" | ||
}, | ||
"addresses": [ | ||
{ | ||
"num": "102", | ||
"street": "Via California", | ||
"locality": "Palermo", | ||
"region": "PA", | ||
"code": "33213", | ||
"country": "IT" | ||
} | ||
] | ||
}, | ||
"customer": { | ||
"tax_id": { | ||
"country": "IT", | ||
"type": "individual", | ||
"code": "RSSGNN60R30H501U" | ||
}, | ||
"name": "Mela S.r.l.", | ||
"inboxes": [ | ||
{ | ||
"key": "it-sdi-code", | ||
"code": "M5UXCR5" | ||
} | ||
], | ||
"addresses": [ | ||
{ | ||
"num": "23", | ||
"street": "Via dei Mille", | ||
"locality": "Firenze", | ||
"region": "FI", | ||
"code": "00100", | ||
"country": "IT" | ||
} | ||
] | ||
}, | ||
"lines": [ | ||
{ | ||
"i": 1, | ||
"quantity": "1", | ||
"item": { | ||
"name": "Tassa di Soggiorno", | ||
"price": "1.00" | ||
}, | ||
"taxes": [ | ||
{ | ||
"cat": "VAT", | ||
"rate": "exempt", | ||
"ext": { | ||
"it-sdi-nature": "N4" | ||
} | ||
} | ||
], | ||
"sum": "1.00", | ||
"total": "1.00" | ||
}, | ||
{ | ||
"i": 2, | ||
"quantity": "1", | ||
"item": { | ||
"name": "Camera Matrimoniale", | ||
"price": "125.00" | ||
}, | ||
"taxes": [ | ||
{ | ||
"cat": "VAT", | ||
"rate": "intermediate" | ||
} | ||
], | ||
"sum": "125.00", | ||
"total": "137.50" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
{ | ||
"$schema": "https://gobl.org/draft-0/bill/invoice", | ||
"uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", | ||
"series": "SAMPLE", | ||
"code": "002", | ||
"currency": "EUR", | ||
"issue_date": "2023-05-21", | ||
"tax": { | ||
"prices_include": "VAT", | ||
"ext": { | ||
"it-sdi-format": "FPA12" | ||
} | ||
}, | ||
"type": "standard", | ||
"supplier": { | ||
"tax_id": { | ||
"country": "IT", | ||
"code": "12345678903" | ||
}, | ||
"name": "Hotel California", | ||
"registration": { | ||
"capital": "50000.00", | ||
"currency": "EUR", | ||
"entry": "123456", | ||
"office": "RM" | ||
}, | ||
"addresses": [ | ||
{ | ||
"num": "102", | ||
"street": "Via California", | ||
"locality": "Palermo", | ||
"region": "PA", | ||
"code": "33213", | ||
"country": "IT" | ||
} | ||
] | ||
}, | ||
"customer": { | ||
"tax_id": { | ||
"country": "IT", | ||
"code": "13029381004" | ||
}, | ||
"name": "Mela S.r.l.", | ||
"inboxes": [ | ||
{ | ||
"key": "it-sdi-code", | ||
"code": "M5UXCR5" | ||
} | ||
], | ||
"addresses": [ | ||
{ | ||
"num": "23", | ||
"street": "Via dei Mille", | ||
"locality": "Firenze", | ||
"region": "FI", | ||
"code": "00100", | ||
"country": "IT" | ||
} | ||
] | ||
}, | ||
"lines": [ | ||
{ | ||
"i": 1, | ||
"quantity": "1", | ||
"item": { | ||
"name": "Tassa di Soggiorno", | ||
"price": "1.00" | ||
}, | ||
"taxes": [ | ||
{ | ||
"cat": "VAT", | ||
"rate": "exempt", | ||
"ext": { | ||
"it-sdi-nature": "N4" | ||
} | ||
} | ||
], | ||
"sum": "1.00", | ||
"total": "1.00" | ||
}, | ||
{ | ||
"i": 2, | ||
"quantity": "1", | ||
"item": { | ||
"name": "Camera Matrimoniale", | ||
"price": "125.00" | ||
}, | ||
"taxes": [ | ||
{ | ||
"cat": "VAT", | ||
"rate": "intermediate" | ||
} | ||
], | ||
"sum": "125.00", | ||
"total": "137.50" | ||
} | ||
] | ||
} |
Oops, something went wrong.