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