Repository navigation
Conversation
TradeParty#legal_organization takes a trading_business_name, written as SpecifiedLegalOrganization/TradingBusinessName. The new TradeParty#description is written as ram:Description after ram:Name. Both are version 2 only. SpecifiedLegalOrganization is only written when it has an ID or a trading name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 24, 2026
Contributor
Author
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This result was produced with the help of AI (supervised, not fully automated) and I hope this is acceptable for you.
Problem
A seller can be named only by its legal name (BT-27). Two terms of the seller group are missing:
Change
TradeParty#legal_organizationtakes atrading_business_name, written asSpecifiedLegalOrganization/TradingBusinessName(BT-28).TradeParty#description, written asram:Descriptiondirectly afterram:Name(BT-33), where the CII schema places it.SpecifiedLegalOrganizationis written only when it has an ID or a trading name. This means a trading name can be given without a registration ID.Existing callers get the same XML as before.
Tests
Three new tests in
test/invoice_test.rb, each validated against the schematron:Apart from that, the suite results are unchanged.
test_invoice_without_gross_pricefails on main as well.A CHANGELOG entry is included.
Related
#63 also changes the
SpecifiedLegalOrganizationblock, to allow BT-30 withoutschemeID. The two changes don't overlap in substance. Whichever is merged second needs a small rebase, and I'm happy to do it.