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

Deleting supplier validation #428

Merged
merged 4 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

### Fixes

- `ch`: Deleted Supplier validation (not needed for under 2300 CHF/year)
- `bill`: `Invoice` `GetExtensions` method now works correctly if missing totals [Issue #424](https://github.com/invopop/gobl/issues/424).

## [v0.205.0] - 2024-11-12
Expand Down
2 changes: 0 additions & 2 deletions regimes/ch/ch.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ func New() *tax.RegimeDef {
// Validate checks the document type and determines if it can be validated.
func Validate(doc any) error {
switch obj := doc.(type) {
case *bill.Invoice:
return validateInvoice(obj)
case *tax.Identity:
return validateTaxIdentity(obj)
}
Expand Down
31 changes: 0 additions & 31 deletions regimes/ch/invoices.go

This file was deleted.

60 changes: 0 additions & 60 deletions regimes/ch/invoices_test.go

This file was deleted.