Codeunit 37218 "PEPPOL30 Common"
PEPPOL · Microsoft.Peppol
Across versions
- BC23-28not present
- BC29present
- BC30changed
PEPPOL · Microsoft.Peppol · BC29-30 · source at ea08af5e · facts from BC29
Procedures
ConvertPostedHeaderToSalesHeader(var PostedRecRef: RecordRef; var SalesHeader: Record "Sales Header"): Converts a posted document header RecordRef to a Sales Header buffer. Supports Sales Invoice Header, Sales Cr.Memo Header, Service Invoice Header, and Service Cr.Memo Header.ConvertPostedLineToSalesLine(var PostedLineRecRef: RecordRef; var SalesLine: Record "Sales Line"): Converts a posted document line RecordRef to a Sales Line buffer. Supports Sales Invoice Line, Sales Cr.Memo Line, Service Invoice Line, and Service Cr.Memo Line.GetTotals(var PostedDocHeaderRecRef: RecordRef; var PostedDocLineRecRef: RecordRef; var TempVATAmtLine: Record "VAT Amount Line" temporary; var TempVATProductPostingGroup: Record "VAT Product Posting Group" temporary; PEPPOLFormat: Enum "PEPPOL 3.0 Format"): Calculates and retrieves VAT totals for a posted document. Supports Sales Invoice, Sales Credit Memo, Service Invoice, and Service Credit Memo.GetTotals(var PurchaseHeaderRecRef: RecordRef; var PurchaseLineRecRef: RecordRef; var TempVATAmtLine: Record "VAT Amount Line" temporary; var TempVATProductPostingGroup: Record "VAT Product Posting Group" temporary; PEPPOLPurchaseFormat: Enum "PEPPOL 3.0 Purchase"): Calculates and retrieves VAT totals for a purchase order.SetDocumentAttachmentFilters(var PostedDocHeaderRecRef: RecordRef; var DocumentAttachments: Record "Document Attachment"): Sets document attachment filters based on the posted document header.GetInvoiceRoundingLine(PostedDocHeaderRecRef: RecordRef; var TempSalesLineRounding: Record "Sales Line" temporary; PEPPOLFormat: Enum "PEPPOL 3.0 Format"): Gets the invoice rounding line from the posted document lines.GetInvoiceRoundingLine(PurchaseHeaderRecRef: RecordRef; var TempPurchaseLineRounding: Record "Purchase Line" temporary; PEPPOLPurchaseFormat: Enum "PEPPOL 3.0 Purchase"): Gets the invoice rounding line from purchase order lines using a RecordRef header.SetFilters(var PostedDocHeaderRecRef: RecordRef; var PostedDocLineRecRef: RecordRef; TempSalesLineRounding: Record "Sales Line" temporary): Sets filters on posted document lines, excluding the rounding line if present.SetFilters(var PurchaseHeaderRecRef: RecordRef; var PurchaseLineRecRef: RecordRef; TempPurchaseLineRounding: Record "Purchase Line" temporary): Sets filters on purchase order lines using RecordRefs, excluding the rounding line if present.
Recent changes
- 2026-10-07 #11560 [E-Documents Core] [Peppol] - Enabling EDI capabilities with E-Documents. Send path (Self-Billed Purchase Invoice/Credit Memo → E-Document) (main, BC30, feature)
- 2026-09-10 #11023 BE’s PEPPOL “escompte” compensation (main, BC30, fix)
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: "PEPPOL30 Common"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.