Share via


Codeunit "Posting Selection Management"

ID 99
Namespace: Microsoft.Finance.ReceivablesPayables

Methods

ConfirmPostSalesDocument

procedure ConfirmPostSalesDocument(var SalesHeaderToPost: Record "Sales Header", DefaultOption: Integer, WithPrint: Boolean, WithEmail: Boolean): Boolean

Parameters

Name Type Description
SalesHeaderToPost Table Microsoft.Sales.Document."Sales Header"
DefaultOption Integer
WithPrint Boolean
WithEmail Boolean

Returns

Type Description
Boolean

ConfirmPostPurchaseDocument

procedure ConfirmPostPurchaseDocument(var PurchaseHeaderToPost: Record "Purchase Header", DefaultOption: Integer, WithPrint: Boolean, WithEmail: Boolean): Boolean

Parameters

Name Type Description
PurchaseHeaderToPost Table Microsoft.Purchases.Document."Purchase Header"
DefaultOption Integer
WithPrint Boolean
WithEmail Boolean

Returns

Type Description
Boolean

ConfirmPostServiceDocument

Obsolete

This element will become obsolete from version 25.0. Replaced by same procedure in codeunit Serv. Posting Selection Mgt.

[Obsolete(Replaced by same procedure in codeunit Serv. Posting Selection Mgt.,25.0)]
procedure ConfirmPostServiceDocument(var ServiceHeaderToPost: Record "Service Header", var Ship: Boolean, var Consume: Boolean, var Invoice: Boolean, DefaultOption: Integer, WithPrint: Boolean, WithEmail: Boolean, PreviewMode: Boolean): Boolean

Parameters

Name Type Description
ServiceHeaderToPost Table Microsoft.Service.Document."Service Header"
Ship Boolean
Consume Boolean
Invoice Boolean
DefaultOption Integer
WithPrint Boolean
WithEmail Boolean
PreviewMode Boolean

Returns

Type Description
Boolean

ConfirmPostWarehouseActivity

procedure ConfirmPostWarehouseActivity(var WarehouseActivityLine: Record "Warehouse Activity Line", var Selection: Integer, DefaultOption: Integer, WithPrint: Boolean): Boolean

Parameters

Name Type Description
WarehouseActivityLine Table Microsoft.Warehouse.Activity."Warehouse Activity Line"
Selection Integer
DefaultOption Integer
WithPrint Boolean

Returns

Type Description
Boolean

ConfirmPostWhseShipment

procedure ConfirmPostWhseShipment(var WarehouseShipmentLine: Record "Warehouse Shipment Line", var Selection: Integer): Boolean

Parameters

Name Type Description
WarehouseShipmentLine Table Microsoft.Warehouse.Document."Warehouse Shipment Line"
Selection Integer

Returns

Type Description
Boolean

CheckUserCanInvoiceSales

procedure CheckUserCanInvoiceSales()

CheckUserCanInvoicePurchase

procedure CheckUserCanInvoicePurchase()

CheckUserCanInvoiceService

Obsolete

This element will become obsolete from version 25.0. Replaced by same procedure in codeunit Serv. Posting Selection Mgt.

[Obsolete(Replaced by same procedure in codeunit Serv. Posting Selection Mgt.,25.0)]
procedure CheckUserCanInvoiceService()

GetPostConfirmationMessage

procedure GetPostConfirmationMessage(What: Text, WithPrint: Boolean, WithEmail: Boolean): Text

Parameters

Name Type Description
What Text
WithPrint Boolean
WithEmail Boolean

Returns

Type Description
Text

GetPostConfirmationMessage

procedure GetPostConfirmationMessage(IsInvoice: Boolean, WithPrint: Boolean, WithEmail: Boolean): Text

Parameters

Name Type Description
IsInvoice Boolean
WithPrint Boolean
WithEmail Boolean

Returns

Type Description
Text

GetShipConfirmationMessage

procedure GetShipConfirmationMessage(): Text

Returns

Type Description
Text

GetShipInvoiceConfirmationMessage

procedure GetShipInvoiceConfirmationMessage(): Text

Returns

Type Description
Text

GetReceiveConfirmationMessage

procedure GetReceiveConfirmationMessage(): Text

Returns

Type Description
Text

GetPostingInvoiceProhibitedErr

procedure GetPostingInvoiceProhibitedErr(): Text

Returns

Type Description
Text

Events

OnConfirmPostSalesDocumentOnBeforeSalesOrderGetSalesInvoicePostingPolicy

[IntegrationEvent(False,False)]
local procedure OnConfirmPostSalesDocumentOnBeforeSalesOrderGetSalesInvoicePostingPolicy(var SalesHeader: Record "Sales Header", var IsHandled: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
IsHandled Boolean

OnConfirmPostSalesDocumentOnBeforeSalesOrderReturnGetSalesInvoicePostingPolicy

[IntegrationEvent(False,False)]
local procedure OnConfirmPostSalesDocumentOnBeforeSalesOrderReturnGetSalesInvoicePostingPolicy(var SalesHeader: Record "Sales Header", var IsHandled: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
IsHandled Boolean

OnConfirmPostPurchaseDocumentOnBeforePurchaseOrderGetPurchaseInvoicePostingPolicy

[IntegrationEvent(False,False)]
local procedure OnConfirmPostPurchaseDocumentOnBeforePurchaseOrderGetPurchaseInvoicePostingPolicy(var PurchaseHeader: Record "Purchase Header", var IsHandled: Boolean)

Parameters

Name Type Description
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"
IsHandled Boolean

OnConfirmPostPurchaseDocumentOnBeforePurchaseReturnOrderGetPurchaseInvoicePostingPolicy

[IntegrationEvent(False,False)]
local procedure OnConfirmPostPurchaseDocumentOnBeforePurchaseReturnOrderGetPurchaseInvoicePostingPolicy(var PurchaseHeader: Record "Purchase Header", var IsHandled: Boolean)

Parameters

Name Type Description
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"
IsHandled Boolean

OnBeforeGetShipInvoiceSelectionForWhseActivity

[IntegrationEvent(False,False)]
local procedure OnBeforeGetShipInvoiceSelectionForWhseActivity(var DefaultOption: Integer, var Selection: Integer, var IsHandled: Boolean, var Result: Boolean)

Parameters

Name Type Description
DefaultOption Integer
Selection Integer
IsHandled Boolean
Result Boolean

OnAfterGetInvoicePostingPolicy

[IntegrationEvent(False,False)]
local procedure OnAfterGetInvoicePostingPolicy(SourceDocument: Enum "Warehouse Activity Source Document", var Ship: Boolean, var Invoice: Boolean)

Parameters

Name Type Description
SourceDocument Enum Microsoft.Warehouse.Activity."Warehouse Activity Source Document"
Ship Boolean
Invoice Boolean

OnBeforeGetSalesOrderPostingSelection

[IntegrationEvent(False,False)]
local procedure OnBeforeGetSalesOrderPostingSelection(var SalesHeader: Record "Sales Header", DefaultOption: Integer, var IsHandled: Boolean, var Selection: Integer)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
DefaultOption Integer
IsHandled Boolean
Selection Integer

OnBeforeGetPurchaseOrderPostingSelection

[IntegrationEvent(False,False)]
local procedure OnBeforeGetPurchaseOrderPostingSelection(var PurchaseHeader: Record "Purchase Header", DefaultOption: Integer, var IsHandled: Boolean, var Selection: Integer)

Parameters

Name Type Description
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"
DefaultOption Integer
IsHandled Boolean
Selection Integer

See also