Share via


TrvExpTrans::checkWorkerCategory Method

This function will check the combination of the worker and category is valid for the expense line when the validation of category/worker parameter is set to mandatory

Syntax

client server public static boolean checkWorkerCategory(
    ProjWorkerRecId _workerRecId, 
    ProjCategoryId _categoryId, 
    boolean _isIntercompany, 
   [boolean _showValidationMessage])

Run On

Called

Parameters

  • _isIntercompany
    Type: boolean
    Is the expense line belongs to intercompany.
  • _showValidationMessage
    Type: boolean
    Indicates whether validation error message to be shown or not.

Return Value

Type: boolean
true, if the combination of worker and category is valid; false, otherwise.

Remarks

Performs worker/category validation.

See Also

Reference

TrvExpTrans Table