-
Notifications
You must be signed in to change notification settings - Fork 17
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
fixes Issue #20, Issue #22, Issue #26 and Issue #29. It replaces PR #21 and PR #23 and contains alignments to the v2.2 specification #27
Merged
raphaelm
merged 4 commits into
pretix:master
from
MAKOMO:ReferenceDocument_DateTimeElement_fix
Mar 10, 2024
Merged
Conversation
This file contains 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
Contributor
MAKOMO
commented
Jan 20, 2024
- corrects the NS_QDT name according to the zugferd22 specification
- extends elements.py:DateTimeElement to allow the adjustment of the inner DateTimes namespace
- updates references.py:ReferencedDocument to use NS_QDT for its DateTimeElement
- corrects profiles in reference.py for various attributes according to the zugferd22 schemata
- adds test zugferd_2p2_EN16931_ElektronischeAdresse2.xml as a variation of the official zugferd22 sample EN16931_ElektronischeAdresse.xml adding a FormattedIssueDateTime to the BuyerOrderReferencedDocument
- moves SellerOrderReferencedDocument from trade.py to references.py
- fixes DateTimeField namespace of AdvancePayment.received_date
- extends elements.py:DateTimeElement to allow the adjustment of the inner DateTimes namespace - updates references.py:ReferencedDocument to use NS_QDT for its DateTimeElement - corrects profiles in reference.py for various attributes according to the zugferd22 schemata - adds test zugferd_2p2_EN16931_ElektronischeAdresse2.xml as a variation of the official zugferd22 sample EN16931_ElektronischeAdresse.xml adding a FormattedIssueDateTime to the BuyerOrderReferencedDocument - moves SellerOrderReferencedDocument from trade.py to references.py - fixes DateTimeField namespace of AdvancePayment.received_date
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #27 +/- ##
==========================================
- Coverage 91.09% 90.46% -0.64%
==========================================
Files 17 17
Lines 1382 1384 +2
==========================================
- Hits 1259 1252 -7
- Misses 123 132 +9 ☔ View full report in Codecov by Sentry. |
…ctInstance) to product.py and adds the missing fields "id" (IDField) and "instance" (ProductInstance) to product.py:TradeProduct. This commit also adds class PayerTradeParty (PayerTradeParty) to party.py and adds the missing field "payer" (PayerTradeParty) to trade.py:TradeSettlement. This commit also removes the unused (and not needed) party.py:LineApplicableTradeTax class. This commit also corrects profile and required tags according to the v2.2 specification as follows: - references.py:LineAdditionalReferencedDocument .name profile COMFORT => BASIC (was COMFORT) - tradelines.py:LineSettlement .trade_tax profile COMFORT => BASIC .period profile COMFORT => BASIC .allowance_charge profile COMFORT => BASIC .monetary_summation profile COMFORT => BASIC .additional_referenced_document profile EXTENDED => COMFORT .accounting_account profile EXTENDED => COMFORT - product.py:ProductCharacteristic .type_code required => optional .description profile EXTENDED => COMFORT .value profile EXTENDED => COMFORT - product.py:ProductClassification .class_code required => optional; profile EXTENDED => COMFORT .value required => optional - product.py:TradeProduct .name profile COMFORT => BASIC .characteristics EXTENDED => COMFORT .classifications EXTENDED => COMFORT .origins EXTENDED => COMFORT - trade.py:TradeSettlement .tax_currency_code profile COMFORT => BASIC .invoicer profile COMFORT => EXTENDED .invoicee profile COMFORT => EXTENDED .payee profile COMFORT => BASIC .allowance_charge profile COMFORT => BASIC .service_charge profile COMFORT => EXTENDED .terms profile COMFORT => BASIC .accounting_account EXTENDED => BASIC - accounting.py:ApplicableTradeTax .exemption_reason COMFORT => BASIC .category_code COMFORT => BASIC .exemption_reason_code EXTENDED => BASIC
MAKOMO
changed the title
fixes Issue #20, Issue #22, and Issue 26 and replaces PR #21 and PR #23
fixes Issue #20, Issue #22, Issue #26 and Issue #29. It replaces PR #21 and PR #23 and contains alignments to the v2.2 specification
Jan 26, 2024
MAKOMO
added a commit
to MAKOMO/python-drafthorse
that referenced
this pull request
Jan 26, 2024
raphaelm
approved these changes
Mar 10, 2024
Thanks a lot, and sorry for the long turnaround! |
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.