[Bug]: xRechnung/ZUGFeRD export missing TaxExemptionReason and unsupported VATEX codes#29930
Open
miljance wants to merge 1 commit intomicrosoft:mainfrom
Open
[Bug]: xRechnung/ZUGFeRD export missing TaxExemptionReason and unsupported VATEX codes#29930miljance wants to merge 1 commit intomicrosoft:mainfrom
miljance wants to merge 1 commit intomicrosoft:mainfrom
Conversation
… rule fixes **VATEX Implementation:** - Export dynamic VATEX code and tax exemption reason from VAT Posting Setup - Support 'Not Subject to VAT' (Category O) via VAT Clause integration - Added comprehensive test coverage for XRechnung and ZUGFeRD with all VATEX codes **EN16931 & BR-DE Compliance Fixes:** - BR-O-02: Skip Seller/Buyer VAT ID only when ALL invoice lines are category 'O' (fixed critical bug: previously skipped if ANY line was 'O', breaking mixed invoices) - BR-O-05: Remove tax percent from line-level 'O' category elements - BR-DE-14: Always include tax percent at document level **Code Architecture:** - Split tax category insertion into line-level and document-level procedures - Separated AllowanceCharge handling by context (6-param line-level, 11-param document-level) - Thread document language code to GetVATClauseInfo for localized exemption descriptions - Add IsTaxCategoryNotSubjectToVAT() helper to centralise the 'O' value **Files Changed:** - XRechnung: Export logic refactored for UBL compliance - ZUGFeRD: CII format aligned with EN16931 requirements - Tests: Added VATEX scenarios for all supported exemption categories
5c682f0 to
b620c88
Compare
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.
Important: Depending on : microsoft/BCApps#7640
Summary
VATEX Implementation:
EN16931 & BR-DE Compliance Fixes:
Code Architecture:
Files Changed:
Work Item(s)
Fixes #29863
Fixes AB#630660