Skip to content

Codeunit WSB_STMServiceStatus

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

Properties

Name Value
Access Public

Methods

wgFncGetServiceDocumentTypeFromDocumentType

Get the service 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 Service Document Type The corresponding service document type.

Codeunit WSB_STMServiceStatusPublic

Exposes procedures to manage and perform tests specifically related to the statuses of Service 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 "Service Header" pRecServiceHeader The Service Header record
Boolean vIsHandled Set this to true if your extension handles/overrides the checks that should be performed