ProjPosting::getLedgerDimension Method
Retrieves a ledger dimension number based on the specified project, category, and account type.
Syntax
Note
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 LedgerDimensionDefaultAccount getLedgerDimension(
ProjAccountType _projAccountType,
ProjId _projId,
ProjCategoryId _projCategoryId,
ProjFundingSourceRefId _projFundingSourceId,
[boolean _mustBeGroup,
boolean _throw,
TaxGroup _taxGroupId])
Microsoft Dynamics AX 2012 R2 (SYS)
client server public static LedgerDimensionDefaultAccount getLedgerDimension(
ProjAccountType _projAccountType,
ProjId _projId,
ProjCategoryId _projCategoryId,
ProjFundingSourceRefId _projFundingSourceId,
[boolean _mustBeGroup,
boolean _throw])
Microsoft Dynamics AX 2012 Feature Pack (SYS)
client server public static LedgerDimensionDefaultAccount getLedgerDimension(
ProjAccountType _projAccountType,
ProjId _projId,
ProjCategoryId _projCategoryId,
ProjFundingSourceRefId _projFundingSourceId,
[boolean _mustBeGroup,
boolean _throw])
Microsoft Dynamics AX 2012 (FPK)
client server public static LedgerDimensionDefaultAccount getLedgerDimension(
ProjAccountType _projAccountType,
ProjId _projId,
ProjCategoryId _projCategoryId,
ProjFundingSourceRefId _projFundingSourceId,
[boolean _mustBeGroup,
boolean _throw])
Microsoft Dynamics AX 2012 (SYS)
client server public static LedgerDimensionDefaultAccount getLedgerDimension(
ProjAccountType _projAccountType,
ProjId _projId,
ProjCategoryId _projCategoryId,
ProjFundingSourceRefId _projFundingSourceId,
[boolean _mustBeGroup,
boolean _throw])
Run On
Called
Parameters
- _projAccountType
Type: ProjAccountType Enumeration
The posting account type for the transaction.
- _projId
Type: ProjId Extended Data Type
The project used by this transaction.
- _projCategoryId
Type: ProjCategoryId Extended Data Type
The category code used by this transaction.
- _projFundingSourceId
Type: ProjFundingSourceRefId Extended Data Type
The funding source that is associated with the project that is used by the transaction.
- _mustBeGroup
Type: boolean
A Boolean value that indicates whether the value in the ProjLedgerPosting field must have the ProjLedgerPosting::GroupId enumeration value; optional.
- _throw
Type: boolean
A Boolean value that determines whether an exception will be thrown if the record is not in the ProjPosting table; optional.
- _taxGroupId
Type: TaxGroup Extended Data Type
The sales tax group used by the transaction for posting; optional
Return Value
Type: LedgerDimensionDefaultAccount Extended Data Type
The ledger dimension that is used by the transaction, based on the parameters for posting.