GetAvailableLabCodes Method
- Last UpdatedNov 06, 2025
- 1 minute read
The GetAvailableLabCodes() method retrieves the available labor codes on an entity or, optionally, all the reasons that are linked to a raw reason code for this entity.
Parameters
- entId
- Required. Holds the ID of the entity.
- rawReasCd
- Optional. Holds the code for a raw reason. Either enter a value or pass a null to not specify a raw reason code.
Return Value
Returns a DataSet whose contents depend on the conditions explained below:
This method first verifies whether a non-null raw reason code is supplied. If the supplied raw reason code is null, then this method attempts to retrieve the cur_raw_reas_cd from the Labor_Exec table. Once the raw reason code is identified, then this method attempts to see if there are available reasons that are linked to this raw reason code (in the Labor_Reas_Link table). If such link is found, then this method returns all the reasons that are linked to this raw reason code for this entity. If no such link exists, then all the labor categories are returned. If no rows are found on any of of these conditions, an empty DataSet will be returned.