Skip to content

Codeunit WSB_STMPurchaseStatus

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

Properties

Name Value
Access Public

Methods

wgFncGetPurchDocumentTypeFromDocumentType

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

wgFncIsStatusActionEnabled

Obsolete

Use WSB_STMStatusMgt.wgFncIsStatusActionEnabled instead 1.34.0.0

Check if status actions are enabled.

Parameters

Type Name Description
Variant pRecRelatedVariant The record we are dealing with.
Enum "Purchase Document Type" pPurchaseDocumentType Type of Purchase Document
Code[10] pStatusCode Status code
Enum "WSB_STMStatusAction" pStatusAction Status Action type

Returns

Type Description
Boolean Status action is enabled.