Codeunit 5588 "Voucher E-Document Check"
EnforcedDigitalVouchers · Microsoft.EServices.EDocument
Across versions
- BC23-28not present
- BC29-30present
Neighbourhood 3 connected objects and pages
EnforcedDigitalVouchers · Microsoft.EServices.EDocument · BC29-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| Access | Internal |
Procedures
CheckVoucherIsAttachedToDocument(var ErrorMessageMgt: Codeunit "Error Message Management"; DigitalVoucherEntryType: Enum "Digital Voucher Entry Type"; RecRef: RecordRef): Validates that an E-Document is attached to the document before posting. Only applies to Purchase Documents when the Digital Voucher feature is enabled and Check Type is set to E-Document.GenerateDigitalVoucherForPostedDocument(DigitalVoucherEntryType: Enum "Digital Voucher Entry Type"; RecRef: RecordRef): Generates a digital voucher for a posted document by delegating to the Attachment check type implementation. This procedure retrieves the digital voucher entry setup and invokes the attachment-based voucher generation.
Calls
From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.
- Codeunit 5579 “Digital Voucher Impl.” (2 calls:
CheckVoucherIsAttachedToDocument → GetDigitalVoucherEntrySetup,GenerateDigitalVoucherForPostedDocument → GetDigitalVoucherEntrySetup) - Codeunit 28 “Error Message Management” (1 call:
CheckVoucherIsAttachedToDocument → LogSimpleErrorMessage) - Codeunit 5585 “Digital Voucher Feature” (1 call:
CheckVoucherIsAttachedToDocument → IsFeatureEnabled)
Implements
Recent changes
- 2026-08-11 #9208 [Enforced Digital Vouchers] - Attaching EDocuments when using Digital Vouchers (main, BC30, feature, added)
Ask your agent
Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "Voucher E-Document Check"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.