PSAResAssignAnalysisBase::capacity Method [AX 2012]

Calculates the total capacity in hours of the worker in the time interval start date and end date.

NoteNote

The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.


  Microsoft Dynamics AX 2012 R3
          client server public static Hours capacity(
            HcmWorkerRecId _sHCMWorkerId, 
            TransDate _dFromDate, 
            TransDate _dToDate, 
           [LegalEntityRecId _legalEntity])

  Microsoft Dynamics AX 2012 R2 (SYS)
          client server public static Hours capacity(
            HcmWorkerRecId _sHCMWorkerId, 
            TransDate _dFromDate, 
            TransDate _dToDate, 
           [LegalEntityRecId _legalEntity])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          client server public static Hours capacity(
            HcmWorkerRecId _sHCMWorkerId, 
            TransDate _dFromDate, 
            TransDate _dToDate)

  Microsoft Dynamics AX 2012 (FPK)
          client server public static Hours capacity(
            HcmWorkerRecId _sHCMWorkerId, 
            TransDate _dFromDate, 
            TransDate _dToDate)

Run On

Called

Parameters

_sHCMWorkerId
Type: HcmWorkerRecId Extended Data Type
The record ID of the worker.
_dFromDate
Type: TransDate Extended Data Type
The start date of the time interval to fetch the capacity of the worker.
_dToDate
Type: TransDate Extended Data Type
The end date of the time interval to fetch the capacity of the worker.
_legalEntity
Type: LegalEntityRecId Extended Data Type

Return Value

Type: Hours Extended Data Type
The total capacity in hours of the worker in the time interval start date and end date.
Show: