Repository navigation
[Enforced Digital Vouchers] - Attaching EDocuments when using Digital Vouchers - #9208
Conversation
Enables digital vouchers to require linked E-documents for purchase posting and to attach exported or posted E-documents as incoming attachments. It also adds setup validation for E-document check types and covers the flow with dedicated tests.
Copilot PR ReviewIteration 1 · Outcome: completed Knowledge source: https://github.com/microsoft/BCQuality@822cae1b2771ac25f665f73369f69093bd4fd630 Findings by domainFindings split into Knowledge-backed (cite a BCQuality article) and Agent (the agent's own judgement, no matching BCQuality rule).
Totals: 2 knowledge-backed · 0 agent findings. Orchestrator pre-filter (13 file(s) excluded)
Findings produced by the Copilot CLI agent against BCQuality at |
…cher # Conflicts: # src/Apps/W1/EDocument/App/src/Processing/EDocumentSubscribers.Codeunit.al
Cleans up an unused event hook to simplify processing and avoid maintaining an irrelevant integration point.
Removes unused parameters and references from the attachment flow to keep voucher processing lean and avoid unnecessary dependencies.
|
The new E-Document invariant on Digital Voucher Entry Setup is enforced only when 'Check Type' or 'Generate Automatically' is validated. A user can still change an existing setup row's 'Entry Type' from Purchase/Sales Document to a journal entry type while 'Check Type' stays E-Document, leaving the row in an unsupported combination. That stores inconsistent setup data, and later journal posting will silently bypass the intended E-Document check because codeunit "Voucher E-Document Check" exits early for non-purchase entry types. Revalidate or clear the E-Document-specific fields when 'Entry Type' changes. Line mapping was unavailable, so this was posted as an issue comment. 👍 useful · ❤️ especially valuable · 👎 wrong - reply with why · AL review agent v1.26.4 |
…/aan/digital-voucher
…eded in test ChangeGenerateAutomaticallyForSalesDocumentWhenEnforced
Head branch was pushed to by a user without write access
669f544
|
Seven new Labels are declared inside procedure-local Knowledge: Line mapping was unavailable, so this was posted as an issue comment. 👍 useful · ❤️ especially valuable · 👎 wrong - reply with why · AL review agent v1.31.4 |
Original PR: microsoft/ALAppExtensions#29793 (closed due to migration)
This pull request does not have a related issue as it's part of the delivery for development agreed directly with Aleksandar Totovic (@altotovi) Magnus Hartvig Grønbech (@Groenbech96) ventselartur
Implementation
With this update enhanced automation for Digital Vouchers in sales and purchase document posting. When enabled, the system will automatically generate and attach E-Documents and related files to posted documents, streamlining document management and compliance.
Functional Changes
When posting sales or purchase documents, if setup is set to use E-Documents the system will attach related E-Document files to the Incoming Document Files of the posted sales/purchase document.
Impact
Reduces manual effort in attaching compliance documents.
Ensures all relevant files are consistently linked to posted documents.
Important
This Pull request related with #7006
Fixes #
Fixes AB#639562