feat: add OmitTaxType for bookkeeping 2.0 sales documents #1
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/invoice-omit-tax-type"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds
OmitTaxType(json:"-") tosales.InvoiceCreate,sales.CreditNoteCreateandsales.OrderCreate. When it is set, the factory body sendstaxRulealone: it omits both an explicitTaxTypeand the one the library normally derives from the rule. Consumers set the flag whenBasics.BookkeepingSystemVersionreports 2.0, so they no longer depend on sevdesk's transitional mapping oftaxType.taxTypefor 1.0.TestOmitTaxTypecovers all three factories. A mutation test showed that each missing clear fails its own subtest.sales/doc.go, the struct comments, README and the CHANGELOG[0.1.1]entry.Once this is merged, tag the merge commit as
v0.1.1. mtn-backend's sevdesk migration (branchfeat/sevdesk-sdk-migration) depends on that tag.Checks: the pre-push hook ran every step of
ci.ymlwith Go 1.26.9, matching the CI lint job (gofmt, vet,go test -race, check-comments, staticcheck v0.8.1, govulncheck, build), and all passed. Two clean review rounds in a row from both Opus and Sol.Note: staticcheck v0.8.1 cannot load packages built with Go 1.27 (export data v5), so the pre-push hook fails on Go 1.27 hosts. CI lint pins 1.26, so CI is unaffected.