Skip to content

Codeunit WSB_STMSalesStatus

Implements the Sales Doc. Applies-to Type (implementation of interface WSB_ISTMStatusAppliesTo).

Properties

Name Value
Access Public

Methods

wgFncGetSalesDocumentTypeFromDocumentType

Get the sales document type from the status management document type.

Parameters

Type Name Description
Enum "WSB_STMDocumentType" pDocumentType The WSB_STMDocumentType / status management document type.

Returns

Type Description
Enum Sales Document Type The corresponding sales document type.

Codeunit WSB_STMSalesStatusPublic

Exposes procedures to manage and perform tests specifically related to the statuses of Sales documents.

Properties

Name Value
Access Public

Methods

wgEvpOnBeforeTestForEdit

An event publisher that allows to extend or override the checks that are being performed (via procedure wlFncTestForEdit) when a user tries to edit the record, based on its current status.

Parameters

Type Name Description
Record "Sales Header" pRecSalesHeader The Sales Header record
Boolean vIsHandled Set this to true if your extension handles/overrides the checks that should be performed