AssetLedgerAccounts::assetOffsetLedgerDimension Method
Retrieves the ledger dimension to which to post for a transaction with a fixed assets offset account.
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
server public static LedgerDimensionDefaultAccount assetOffsetLedgerDimension(
AssetId _assetId,
AssetBookId _assetBookId,
AssetTransType _assetTransType,
[AssetPostingProfile _assetPostingProfile,
boolean _throwError,
AssetDocumentType_JP _assetDocumentType_JP])
Microsoft Dynamics AX 2012 R2 (SYS)
server public static LedgerDimensionDefaultAccount assetOffsetLedgerDimension(
AssetId _assetId,
AssetBookId _assetBookId,
AssetTransType _assetTransType,
[AssetPostingProfile _assetPostingProfile,
boolean _throwError])
Microsoft Dynamics AX 2012 Feature Pack (SYS)
server public static LedgerDimensionDefaultAccount assetOffsetLedgerDimension(
AssetId _assetId,
AssetBookId _assetBookId,
AssetTransType _assetTransType,
[AssetPostingProfile _assetPostingProfile,
boolean _throwError])
Microsoft Dynamics AX 2012 (FPK)
server public static LedgerDimensionDefaultAccount assetOffsetLedgerDimension(
AssetId _assetId,
AssetBookId _assetBookId,
AssetTransType _assetTransType,
[AssetPostingProfile _assetPostingProfile,
boolean _throwError])
Microsoft Dynamics AX 2012 (SYS)
server public static LedgerDimensionDefaultAccount assetOffsetLedgerDimension(
AssetId _assetId,
AssetBookId _assetBookId,
AssetTransType _assetTransType,
[AssetPostingProfile _assetPostingProfile,
boolean _throwError])
Run On
Server
Parameters
- _assetId
Type: AssetId Extended Data Type
The fixed asset.
- _assetBookId
Type: AssetBookId Extended Data Type
The asset book of the fixed asset.
- _assetTransType
Type: AssetTransType Enumeration
The transaction type of the fixed asset.
- _assetPostingProfile
Type: AssetPostingProfile Extended Data Type
The posting profile to use; optional.
- _throwError
Type: boolean
A Boolean value that indicates whether errors may be thrown; optional.
- _assetDocumentType_JP
Type: AssetDocumentType_JP Enumeration
The japan asset document type; optional.
Return Value
Type: LedgerDimensionDefaultAccount Extended Data Type
The ledger dimension to which to post a transaction with a fixed assets offset account.
Exceptions
Exception | Condition |
---|---|
Error | A posting profile is not specified and no default posting profile is in the AssetParameters table. -or- A posting profile is not specified and no default posting profile is in the AssetParameters table. -or- A posting profile exists, but no ledger dimension is found for the given transaction type. |
Remarks
If a posting profile is not specified, the default profile in the AssetParameters table will be used.