codeunitSales & Receivablesofficial - Microsoftderived - from the source, no model text

Codeunit 82 "Sales-Post + Print"

Base Application · Microsoft.Sales.Posting

Across versions

  1. BC23-24present
  2. BC254 procedures changed, 1 procedures removed
  3. BC261 events added, 1 events removed
  4. BC27-30unchanged

Neighbourhood 5 connected objects and pages

Table 36 "Sales Header" (relates to)Sales HeaderCodeunit 7324 "Whse.-Activity-Post" (calls)Whse.-Activity-PostCodeunit 80 "Sales-Post" (calls)Sales-PostCodeunit 88 "Sales Post via Job Queue" (calls)Sales Post via Job QueueCodeunit 99 "Posting Selection Management" (calls)Posting Selection Management

Open in the neighbourhood explorer

One hop out, from the extracted relations and call graph. Up to 40 shown; the sections below list them all.

Base Application · Microsoft.Sales.Posting · BC23-30 · source at ea08af5e · facts from BC29

Properties

Property Value
TableNo Sales Header

Events published

  • OnAfterPost(var SalesHeader: Record "Sales Header") (integration): Raised after the sales document has been posted.
  • OnAfterConfirmPost(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) + BC26 − BC26 (integration): Raised after the user confirms posting the sales document.
  • OnBeforeConfirmPost(var SalesHeader: Record "Sales Header"; var HideDialog: Boolean; var IsHandled: Boolean; var SendReportAsEmail: Boolean; var DefaultOption: Integer) (integration): Raised before confirming the post and print operation.
  • OnBeforeConfirmPostProcedure(var SalesHeader: Record "Sales Header"; var DefaultOption: Integer; var Result: Boolean; var IsHandled: Boolean) (integration): Raised before the confirmation dialog procedure.
  • OnBeforeGetReport(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; SendReportAsEmail: Boolean) (integration): Raised before getting the report to print or email.
  • OnBeforeOnRun(var SalesHeader: Record "Sales Header") (integration): Raised before the OnRun trigger executes.
  • OnBeforePrintInvoice(var SalesHeader: Record "Sales Header"; SendReportAsEmail: Boolean; var IsHandled: Boolean) (integration): Raised before printing or emailing the posted sales invoice.
  • OnBeforePrintCrMemo(var SalesHeader: Record "Sales Header"; SendReportAsEmail: Boolean; var IsHandled: Boolean) (integration): Raised before printing or emailing the posted sales credit memo.
  • OnBeforePrintReceive(var SalesHeader: Record "Sales Header"; SendReportAsEmail: Boolean; var IsHandled: Boolean) (integration): Raised before printing or emailing the posted return receipt.
  • OnBeforePrintShip(var SalesHeader: Record "Sales Header"; SendReportAsEmail: Boolean; var IsHandled: Boolean) (integration): Raised before printing or emailing the posted sales shipment.
  • OnBeforeRunSalesPost(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) (integration): Raised before running the Sales-Post codeunit.
  • OnPrintInvoiceOnAfterSetSalesInvHeaderFilter(var SalesHeader: Record "Sales Header"; var SalesInvoiceHeader: Record "Sales Invoice Header"; SendReportAsEmail: Boolean) (integration): Raised after setting the filter on the sales invoice header for printing.
  • OnAfterGetReport(var SalesHeader: Record "Sales Header"; SendReportAsEmail: Boolean) (integration): Raised after getting and printing or emailing the report.

Procedures

  • PostAndEmail(var ParmSalesHeader: Record "Sales Header"): Posts the sales document and sends the posted document to the customer via email.
  • GetReport(var SalesHeader: Record "Sales Header"): Prints or emails the posted sales document based on the document type and settings.
  • PrintReceive(var SalesHeader: Record "Sales Header") Δ BC25: Prints or emails the posted return receipt document.
  • PrintInvoice(var SalesHeader: Record "Sales Header") Δ BC25: Prints or emails the posted sales invoice document.
  • PrintShip(var SalesHeader: Record "Sales Header") Δ BC25: Prints or emails the posted sales shipment document.
  • PrintCrMemo(var SalesHeader: Record "Sales Header") Δ BC25: Prints or emails the posted sales credit memo document.

Plus 3 local procedures.

Triggers

OnRun

Relations

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.

Called by

Countries that replace it

AU, NZ

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). 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: "Sales-Post + Print"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources