Codeunit 99 "Posting Selection Management"
Base Application · Microsoft.Finance.ReceivablesPayables
Across versions
- BC23present
- BC243 procedures added, 1 procedures removed
- BC256 procedures changed, 3 procedures added
- BC262 procedures added, 2 events added
- BC27unchanged
- BC282 procedures removed
- BC29-30unchanged
Neighbourhood 13 connected objects and pages
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.- subscribers: Codeunit 5995 “Service Warehouse Mgt.” OnAfterGetInvoicePostingPolicy
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
- Codeunit 5957 “Serv. Posting Selection Mgt.” (4 calls:
CheckUserCanInvoiceService → GetPostingInvoiceProhibitedErr,ConfirmPostServiceDocument → GetPostConfirmationMessage,ConfirmPostServiceDocument → GetShipConfirmationMessage, …) - Codeunit 91 “Purch.-Post (Yes/No)” (3 calls:
ConfirmPost → ConfirmPostPurchaseDocument,SelectPostOrderOption → ConfirmPostPurchaseDocument,SelectPostReturnOrderOption → ConfirmPostPurchaseDocument) - Codeunit 92 “Purch.-Post + Print” (3 calls:
ConfirmPost → ConfirmPostPurchaseDocument,SelectPostOrderOption → ConfirmPostPurchaseDocument,SelectPostReturnOrderOption → ConfirmPostPurchaseDocument) - Codeunit 7323 “Whse.-Act.-Post (Yes/No)” (2 calls:
SelectForOtherTypes → ConfirmPostWarehouseActivity,SelectForPutAway → ConfirmPostWarehouseActivity) - Codeunit 5764 “Whse.-Post Shipment (Yes/No)” (1 call:
Code → ConfirmPostWhseShipment) - Codeunit 5765 “Whse.-Post Shipment + Print” (1 call:
Code → ConfirmPostWhseShipment) - Codeunit 79 “Sales-Post and Send” (1 call:
Code → CheckUserCanInvoiceSales) - Codeunit 81 “Sales-Post (Yes/No)” (1 call:
ConfirmPost → ConfirmPostSalesDocument) - Codeunit 82 “Sales-Post + Print” (1 call:
ConfirmPost → ConfirmPostSalesDocument) - Table 5766 “Warehouse Activity Header” (1 call:
IsInvoiceNoMandatory → IsPostingInvoiceMandatoryPurchase)
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.