Example CanCreateJob - Client and Project check

Scenario: A user requests a job is created for a particular client and project. Business rules apply to determine whether the client and/or project is usable, and cancels the job creation where it is not.

Copy

Example CanCreateJob - Client and project check

'        ProUdf.VBS *** Example only ***

'

'        VB Script for User Defined Client and Project Checking

'        Parameters :

'        P1 Client to add the job to STRING

'        P2 Project to add the job to STRING

'

Function ProUDF2(sCliCode, sProjCode)

    If sProjCode < "2002" Then

        ProUDF2 = "Project expired"

    Else

        ProUDF2 = ""

    End If

End Function