-
Notifications
You must be signed in to change notification settings - Fork 8
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
EN 16931 tags #394
EN 16931 tags #394
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!! I had exactly the same idea a few days ago
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code itself looks sound, but I'm afraid this isn't the best approach. The fundamental issue is that the EN16931 semantic codes usually have a context, whereas the syntax defined in the GOBL structures are designed to be used anywhere.
The objective however is sound, its just the approach that needs changing. In my opinion there should be a table of EN16931 codes to JSON pointers/paths of attributes inside GOBL structures so that you always have a context. This table should also define "notes" or something similar to describe any additional implications or meanings. The mapping table should also be adjusted when addons or regimes are applied.
This might be a good subject to brainstorm next week.
It's a good point that GOBL structs have a scope that could potentially exceed that of EN16391 and putting the metadata directly in the structs, while convenient, may not makes any sense in other contexts. It's also true that mapping may not always be direct or trivial and additional notes to indicate special details may also be useful or necessary. |
Thank you for this PR, it's more comprehensive than FacturX documentation 😄 |
Closing this one in favor of #401 |
Added tags for GOBL objects mapping them to their correspondent EN 16931 Business Term (BT) or Business Group (BG).