Codeunit 6209 "E-Doc Sample Purchase Invoice"
EDocument · Microsoft.EServices.EDocument.Processing.Import.Purchase
Across versions
- BC23-28not present
- BC29-30present
EDocument · Microsoft.EServices.EDocument.Processing.Import.Purchase · BC29-30 · source at ea08af5e · facts from BC29
Procedures
GetSampleInvoicePostingDate(): Date: Gets the posting date for the sample invoice.AddInvoice(VendorNo: Code[20]; ExternalDocNo: Text[35]; Scenario: Text[2048]): Adds a sample purchase invoice.AddInvoice(VendorNo: Code[20]; ExternalDocNo: Text[35]; Scenario: Text[2048]; TotalTaxAmount: Decimal): Adds a sample purchase invoice.SetMixLayoutsForPDFGeneration(): Sets the flag to mix layouts for PDF generation.InitSamplePurchInvHeader(var EDocPurchaseHeader: Record "E-Document Purchase Header"; VendorNo: Code[20]; DocumentDate: Date; ExternalDocNo: Text[35]; TotalTaxAmount: Decimal)(internal): Initializes a sample purchase invoice header.AddLine(LineType: Enum "Purchase Line Type"; No: Code[20]; Description: Text[100]; Quantity: Decimal; DirectUnitCost: Decimal; UnitOfMeasureCode: Code[10]): Adds a sample purchase invoice line.AddLine(LineType: Enum "Purchase Line Type"; No: Code[20]; Description: Text[100]; Quantity: Decimal; DirectUnitCost: Decimal; DeferralCode: Code[10]; UnitOfMeasureCode: Code[10]): Adds a sample purchase invoice line to the current temporary header.AddLine(EDocPurchaseHeader: Record "E-Document Purchase Header"; LineType: Enum "Purchase Line Type"; No: Code[20]; Description: Text[100]; Quantity: Decimal; DirectUnitCost: Decimal; DeferralCode: Code[10]; UnitOfMeasureCode: Code[10])(internal): Adds a sample purchase invoice line to the specified header.Generate(): Generates sample invoices in PDF format based on added headers and lines and stores them in the “E-Doc Sample Purch. Inv File” table.UpdateTotalVATInEDocPurchaseHeader(var EDocPurchaseHeader: Record "E-Document Purchase Header"; var EDocPurchaseLine: Record "E-Document Purchase Line")(internal): Update the total VAT on the e-document purchase header based on the lines added.
Plus 5 local procedures.
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 Sample Purchase Invoice"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.