codeunitIntegration & APIsofficial - Microsoftderived - from the source, no model text

Codeunit 6402 "E-Doc. Purch. Doc. Helper"

EDocument · Microsoft.eServices.EDocument.Processing.Import

Across versions

  1. BC23-28not present
  2. BC29-30present

EDocument · Microsoft.eServices.EDocument.Processing.Import · BC29-30 · source at 4e6a307c · facts from BC29

Properties

Property Value
Access Internal
Permissions tabledata “Dimension Set Tree Node” = im, tabledata “Dimension Set Entry” = im

Procedures

  • CreatePurchaseLineFromDraft(PurchaseHeader: Record "Purchase Header"; EDocumentPurchaseLine: Record "E-Document Purchase Line"; HasTotalDiscount: Boolean; LineNo: Integer)
  • ValidateFieldWithContext(var Rec: Record "Purchase Header"; FieldNo: Integer; Value: Variant)
  • ValidateFieldWithContext(var Rec: Record "Purchase Line"; FieldNo: Integer; Value: Variant)
  • AllDraftLinesHaveTypeAndNumber(EDocumentPurchaseHeader: Record "E-Document Purchase Header"): Boolean
  • TryValidateDocumentTotals(PurchaseHeader: Record "Purchase Header")
  • GetLastPurchaseLineNo(DocumentType: Enum "Purchase Document Type"; DocumentNo: Code[20]): Integer
  • FinalizeCreatedDocument(EDocument: Record "E-Document"; var PurchaseHeader: Record "Purchase Header")
  • ApplyVATDifferenceToLines(PurchaseHeader: Record "Purchase Header"; EDocumentPurchaseHeader: Record "E-Document Purchase Header")
  • RevertCreatedDocument(EDocument: Record "E-Document")
  • ApplyDefaultPostingDateFromSetup(var PurchaseHeader: Record "Purchase Header"; EDocumentPurchaseHeader: Record "E-Document Purchase Header")
  • SetNormalReverseChargeFilter(var VATPostingSetup: Record "VAT Posting Setup"; VATBusPostingGroup: Code[20])
  • TryResolveOpenInvoice(PayToVendorNo: Code[20]; CurrencyCode: Code[10]; Reference: Text; var PostedInvoiceNo: Code[20]; var FailureReason: Text): Boolean (internal): Finds the one open posted invoice of the pay-to vendor that Reference identifies, by its document number or by the vendor’s invoice number, in a currency the credit memo can be applied to.
  • GetPayToVendorNo(VendorNo: Code[20]): Code[20] (internal)
  • ResolveInvoiceToApplyTo(var EDocumentPurchaseHeader: Record "E-Document Purchase Header"; var FailureReason: Text): Boolean (internal): Sets “Applies-to Doc. No.” on the credit memo draft to the open posted invoice identified by “Vendor Invoice No.” for the draft’s vendor, or clears it.
  • IsOpenInvoiceToApplyTo(VendorNo: Code[20]; CurrencyCode: Code[10]; PostedInvoiceNo: Code[20]; var FailureReason: Text): Boolean (internal): Checks that PostedInvoiceNo is an open posted invoice of the pay-to vendor, in a currency the credit memo can be applied to.
  • TestOpenInvoiceToApplyTo(VendorNo: Code[20]; CurrencyCode: Code[10]; PostedInvoiceNo: Code[20]) (internal): Fails when PostedInvoiceNo is not an open posted invoice of the pay-to vendor, in a currency the credit memo can be applied to.
  • GetSeveralInvoicesMatchWarning(): Text (internal): The warning shown when several invoices match the credit memo, so none is selected and the user has to choose one.
  • GetNotAppliedOutcome(VendorNo: Code[20]): Text (internal): The warning shown when no invoice is selected for the credit memo, which therefore is not applied when it is posted.
  • FilterOpenInvoicesToApplyTo(VendorNo: Code[20]; Reference: Text; var VendorLedgerEntry: Record "Vendor Ledger Entry") (internal): Filters VendorLedgerEntry to the open posted invoices of the pay-to vendor that the credit memo can be applied to. When Reference matches more than one of them, only those are kept, so the user picks among the invoices the credit note refers to.
  • PreventApplyToOldestOnPosting(var PurchaseHeader: Record "Purchase Header") (internal): Keeps a credit memo that is not applied to an invoice from being applied to unrelated invoices when it is posted. Posting applies a credit memo with neither Applies-to Doc. No. nor Applies-to ID to the oldest open invoices when the vendor’s application method is Apply to Oldest. Setting Applies-to I…

Plus 6 local procedures.

Recent changes

No source states these links: they share an object, a model read them, or a person found the same subject.

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

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: "E-Doc. Purch. Doc. Helper"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources