Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Veri*Factu Addon #410

Merged
merged 32 commits into from
Dec 5, 2024
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
eacfaa5
Initial Extensions and Validations
Nov 4, 2024
0cb518b
Exemption Extensions
apardods Nov 8, 2024
098c351
Add Invoice Tests
apardods Nov 8, 2024
a1846a3
Merge branch 'main' into addon-verifactu
apardods Nov 8, 2024
8f0cee7
Added QR Stamp
apardods Nov 11, 2024
580b5e4
Merge branch 'main' into addon-verifactu
apardods Nov 11, 2024
0ec4e55
Added Scenarios and Extensions
apardods Nov 12, 2024
033c0ce
Added All Lists as Extensions
apardods Nov 12, 2024
80fdfb3
Merge branch 'main' into addon-verifactu
apardods Nov 15, 2024
214df6f
Remove some unnecessary extensions
apardods Nov 19, 2024
c3526d8
Merge branch 'main' into addon-verifactu
apardods Nov 19, 2024
1b04b70
Remove Extension & Fix Test
apardods Nov 19, 2024
52b07e5
Added Scenario Tests
apardods Nov 22, 2024
b47d4f6
Fix Tests
apardods Nov 22, 2024
496b504
Added Invoice Tests and Updated Validation
apardods Nov 26, 2024
d0055be
Cover Preceding
apardods Nov 26, 2024
c57dc1c
Run go generate
apardods Nov 26, 2024
1b166f3
Merge branch 'main' into addon-verifactu
apardods Nov 26, 2024
bff3256
Update changelog
apardods Nov 26, 2024
056b02f
Added sources
apardods Nov 26, 2024
8cb512e
Adding tag
apardods Nov 27, 2024
2c7873a
Merge branch 'main' into addon-verifactu
apardods Dec 3, 2024
6aa13a0
Refactoring handling of Verifactu extensions and scenarios, plus othe…
samlown Dec 4, 2024
58bd731
Fixing linting issues
samlown Dec 4, 2024
59350ca
Improving cbc.Key test coverage
samlown Dec 4, 2024
5cd2148
Updating CHANGELOG
samlown Dec 5, 2024
5b5a7b7
Add Tax Regime Extension
apardods Dec 5, 2024
a504971
Merge branch 'addon-verifactu' of github.com:invopop/gobl into addon-…
apardods Dec 5, 2024
d80ef41
Remove redundant check
apardods Dec 5, 2024
92b3d2a
Name Change
apardods Dec 5, 2024
5019e86
Renaming Verifactu regime
samlown Dec 5, 2024
633fce7
Test fix
samlown Dec 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into addon-verifactu
apardods authored Dec 3, 2024
commit 2c7873aa7276e386a6f29be9d12ca67eed1b83d1
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -10,6 +10,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

- `es-verifactu-v1`: added initial Spain VeriFactu addon.

## [v0.206.1] - 2024-11-28

### Fixed

- `org`: Party validation now working with regimes when defined.

## [v0.206.0] - 2024-11-26

### Added

Unchanged files with check annotations Beta

func validateInvoiceTax(val any) error {
obj, ok := val.(*bill.Tax)
if obj == nil || !ok {
return nil
}

Check warning on line 60 in addons/es/verifactu/invoice.go

Codecov / codecov/patch

addons/es/verifactu/invoice.go#L59-L60

Added lines #L59 - L60 were not covered by tests
return validation.ValidateStruct(obj,
validation.Field(&obj.Ext,
tax.ExtensionsRequires(ExtKeyDocType),
func validateInvoicePreceding(val any) error {
p, ok := val.(*org.DocumentRef)
if !ok || p == nil {
return nil
}

Check warning on line 93 in addons/es/verifactu/invoice.go

Codecov / codecov/patch

addons/es/verifactu/invoice.go#L92-L93

Added lines #L92 - L93 were not covered by tests
return validation.ValidateStruct(p,
validation.Field(&p.IssueDate,
validation.Required,
func validateInvoiceLine(value any) error {
obj, ok := value.(*bill.Line)
if !ok || obj == nil {
return nil
}

Check warning on line 105 in addons/es/verifactu/invoice.go

Codecov / codecov/patch

addons/es/verifactu/invoice.go#L104-L105

Added lines #L104 - L105 were not covered by tests
return validation.ValidateStruct(obj,
validation.Field(&obj.Taxes,
validation.Each(
func validateInvoiceLineTax(value any) error {
obj, ok := value.(*tax.Combo)
if obj == nil || !ok {
return nil
}

Check warning on line 121 in addons/es/verifactu/invoice.go

Codecov / codecov/patch

addons/es/verifactu/invoice.go#L120-L121

Added lines #L120 - L121 were not covered by tests
return validation.ValidateStruct(obj,
validation.Field(&obj.Ext,
tax.ExtensionsRequires(ExtKeyTaxClassification),
You are viewing a condensed version of this merge commit. You can view the full changes here.