Codeunit 6403 "EDoc Prepare Cr. Memo Draft"
EDocument · Microsoft.eServices.EDocument.Processing.Import
Across versions
- BC23-28not present
- BC29-30present
EDocument · Microsoft.eServices.EDocument.Processing.Import · BC29-30 · source at 4e6a307c · facts from BC29
Properties
| Property | Value |
|---|---|
| Access | Internal |
Procedures
PrepareDraft(EDocument: Record "E-Document"; EDocImportParameters: Record "E-Doc. Import Parameters"): Enum "E-Document Type"RefreshInvoiceToApplyTo(EDocument: Record "E-Document")(internal): Re-derives Applies-to Doc. No. and its warnings after “Applies-to Vendor Inv. No.” is changed on the draft, without preparing the rest of the draft again.ValidateInvoiceToApplyTo(EDocumentPurchaseHeader: Record "E-Document Purchase Header")(internal): Fails when the invoice the user selected in Applies-to Doc. No. is not an open posted invoice of the draft’s vendor.RefreshWarningsForSelectedInvoice(EDocument: Record "E-Document")(internal): Replaces the invoice warnings after the user selected the invoice in Applies-to Doc. No.LookupInvoiceToApplyTo(EDocumentPurchaseHeader: Record "E-Document Purchase Header"; var Text: Text): Boolean(internal): Lets the user select an open posted invoice of the draft’s vendor to apply the credit memo to. When the invoice reference matches several invoices, only those are offered.GetInvoiceWarnings(EDocument: Record "E-Document"): List of [Text](internal): The warnings about the invoice to apply to, shown below Applies-to Doc. No. on the draft.OpenDraftPage(var EDocument: Record "E-Document")CleanUpDraft(EDocument: Record "E-Document")GetVendor(EDocument: Record "E-Document"; Customizations: Enum "E-Doc. Proc. Customizations"): Record Vendor
Plus 6 local procedures.
Recent changes
- 2026-10-21 #12855 [E-Documents] Add support for credit memos, recognised from the PDF and applied to the original invoice (main, BC30, feature)
Ask your agent
Procedure bodies are not stored here (D10). 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: "EDoc Prepare Cr. Memo Draft"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.