Skip to content

Codeunit WSB_STMJobStatusPublic

Exposes procedures to manage and perform tests specifically related to the statuses of projects/jobs.

Properties

Name Value
Access Public

Methods

wgFncTestForCreateSalesInvoice

Check if it is allowed to create a sales invoice for a project/job with its current status and throw an error if that is not the case.

Parameters

Type Name Description
Code[20] pJobNo The no. of the project/job.

wgEvpOnAfterPerformAdditionalJobActions

Allows to hook into the moment right after the Job Status has been changed.

Parameters

Type Name Description
Record "Job" vRecJob The job record for which the status has been changed.
Record "WSB_STMStatusSetup" vRecSTMStatusSetup The status setup record for the new status.
RecordRef vRecRef The record for which the status has been changed.
Enum "WSB_STMStatusAppliesToType" pAppliesToType Applies-to Type

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 "Job" pRecJob The Job record
Boolean vIsHandled Set this to true if your extension handles/overrides the checks that should be performed