codeunitFinanceofficial - Microsoftderived - from the source, no model text

Codeunit 99 "Posting Selection Management"

Base Application · Microsoft.Finance.ReceivablesPayables

Across versions

  1. BC23present
  2. BC243 procedures added, 1 procedures removed
  3. BC256 procedures changed, 3 procedures added
  4. BC262 procedures added, 2 events added
  5. BC27unchanged
  6. BC282 procedures removed
  7. BC29-30unchanged

Neighbourhood 13 connected objects and pages

Codeunit 5995 "Service Warehouse Mgt." (event subscribers)Service Warehouse Mgt.Codeunit 5700 "User Setup Management" (calls, 7 links)User Setup ManagementCodeunit 27 "Confirm Management" (calls, 5 links)Confirm ManagementCodeunit 5957 "Serv. Posting Selection Mgt." (calls, 4 links)Serv. Posting Selection Mgt.Codeunit 91 "Purch.-Post (Yes/No)" (calls, 3 links)Purch.-Post (Yes/No)Codeunit 92 "Purch.-Post + Print" (calls, 3 links)Purch.-Post + PrintCodeunit 7323 "Whse.-Act.-Post (Yes/No)" (calls, 2 links)Whse.-Act.-Post (Yes/No)Codeunit 5764 "Whse.-Post Shipment (Yes/No)" (calls)Whse.-Post Shipment (Yes/No)Codeunit 5765 "Whse.-Post Shipment + Print" (calls)Whse.-Post Shipment + PrintCodeunit 79 "Sales-Post and Send" (calls)Sales-Post and SendCodeunit 81 "Sales-Post (Yes/No)" (calls)Sales-Post (Yes/No)Codeunit 82 "Sales-Post + Print" (calls)Sales-Post + PrintTable 5766 "Warehouse Activity Header" (calls)

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.Finance.ReceivablesPayables · BC23-30 · source at ea08af5e · facts from BC29

Events published

  • OnConfirmPostSalesDocumentOnBeforeSalesOrderGetSalesInvoicePostingPolicy(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) (integration): Integration event raised before getting sales invoice posting policy for sales orders.
  • OnConfirmPostSalesDocumentOnBeforeSalesOrderReturnGetSalesInvoicePostingPolicy(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) (integration): Integration event raised before getting sales invoice posting policy for sales return orders.
  • OnConfirmPostPurchaseDocumentOnBeforePurchaseOrderGetPurchaseInvoicePostingPolicy(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) (integration): Integration event raised before getting purchase invoice posting policy for purchase orders.
  • OnConfirmPostPurchaseDocumentOnBeforePurchaseReturnOrderGetPurchaseInvoicePostingPolicy(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) (integration): Integration event raised before getting purchase invoice posting policy for purchase return orders.
  • OnBeforeGetShipInvoiceSelectionForWhseActivity(var DefaultOption: Integer; var Selection: Integer; var IsHandled: Boolean; var Result: Boolean) Δ BC25 (integration): Integration event raised before getting ship/invoice selection for warehouse activities.
  • OnAfterGetInvoicePostingPolicy(SourceDocument: Enum "Warehouse Activity Source Document"; var Ship: Boolean; var Invoice: Boolean) + BC25 (integration): Integration event raised after determining invoice posting policy for warehouse activities. Enables customization of posting policy decisions based on warehouse source documents.
  • OnBeforeGetSalesOrderPostingSelection(var SalesHeader: Record "Sales Header"; DefaultOption: Integer; var IsHandled: Boolean; var Selection: Integer) + BC26 (integration): Integration event raised before determining sales order posting selection. Enables custom logic for posting option selection and validation.
  • OnBeforeGetPurchaseOrderPostingSelection(var PurchaseHeader: Record "Purchase Header"; DefaultOption: Integer; var IsHandled: Boolean; var Selection: Integer) + BC26 (integration): Integration event raised before determining purchase order posting selection. Enables custom logic for posting option selection and validation.

Procedures

  • ConfirmPostSalesDocument(var SalesHeaderToPost: Record "Sales Header"; DefaultOption: Integer; WithPrint: Boolean; WithEmail: Boolean): Boolean: Displays confirmation dialog for sales document posting with user selection options.
  • ConfirmPostPurchaseDocument(var PurchaseHeaderToPost: Record "Purchase Header"; DefaultOption: Integer; WithPrint: Boolean; WithEmail: Boolean): Boolean: Displays confirmation dialog for purchase document posting with user selection options.
  • ConfirmPostWarehouseActivity(var WarehouseActivityLine: Record "Warehouse Activity Line"; var Selection: Integer; DefaultOption: Integer; WithPrint: Boolean): Boolean: Displays confirmation dialog for warehouse activity posting with user selection options.
  • ConfirmPostWhseShipment(var WarehouseShipmentLine: Record "Warehouse Shipment Line"; var Selection: Integer): Boolean: Displays confirmation dialog for warehouse shipment posting with user selection options.
  • CheckUserCanInvoiceSales(): Verifies that the current user has permission to invoice sales documents.
  • CheckUserCanInvoicePurchase(): Verifies that the current user has permission to invoice purchase documents.
  • IsPostingInvoiceMandatoryPurchase(): Boolean (internal)
  • GetPostConfirmationMessage(What: Text; WithPrint: Boolean; WithEmail: Boolean): Text Δ BC25 Δ BC25: Returns confirmation message text for posting operations with print and email options.
  • GetPostConfirmationMessage(IsInvoice: Boolean; WithPrint: Boolean; WithEmail: Boolean): Text Δ BC25 Δ BC25: Returns confirmation message text for invoice posting operations with print and email options.
  • GetShipConfirmationMessage(): Text Δ BC25: Returns confirmation message text for shipping operations.
  • GetShipInvoiceConfirmationMessage(): Text Δ BC25: Returns confirmation message text for ship and invoice operations.
  • GetReceiveConfirmationMessage(): Text Δ BC25: Returns confirmation message text for receiving operations.
  • GetPostingInvoiceProhibitedErr(): Text + BC25: Returns error message text for prohibited invoice posting.

Plus 6 local procedures.

Triggers

OnRun

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.

  • Codeunit 5700 “User Setup Management” (7 calls: CheckUserCanInvoicePurchase → GetPurchaseInvoicePostingPolicy, CheckUserCanInvoiceSales → GetSalesInvoicePostingPolicy, ConfirmPostPurchaseDocument → GetPurchaseInvoicePostingPolicy, …)
  • Codeunit 27 “Confirm Management” (5 calls: ConfirmPostPurchaseDocument → GetResponseOrDefault, ConfirmPostSalesDocument → GetResponseOrDefault, ConfirmPostWarehouseActivity → GetResponseOrDefault, …)

Called by

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: "Posting Selection Management"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources