AssetLedgerAccounts::findAssetLedgerDimension Method
Retrieves the ledger dimension for posting a transaction with a fixed assets offset.
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 findAssetLedgerDimension(
AssetId _assetId,
AssetBookId _assetBookId,
AssetTransType _assetTransType,
[boolean _returnledgerDimension,
AssetPostingProfile _assetPostingProfile,
AssetDocumentType_JP _assetDocumentType_JP,
AssetGroupId _assetGroupId])
Microsoft Dynamics AX 2012 R2 (SYS)
client server public static LedgerDimensionDefaultAccount findAssetLedgerDimension(
AssetId _assetId,
AssetBookId _assetBookId,
AssetTransType _assetTransType,
[boolean _returnledgerDimension,
AssetPostingProfile _assetPostingProfile])
Microsoft Dynamics AX 2012 Feature Pack (SYS)
client server public static LedgerDimensionDefaultAccount findAssetLedgerDimension(
AssetId _assetId,
AssetBookId _assetBookId,
AssetTransType _assetTransType,
[boolean _returnledgerDimension,
AssetPostingProfile _assetPostingProfile])
Microsoft Dynamics AX 2012 (FPK)
client server public static LedgerDimensionDefaultAccount findAssetLedgerDimension(
AssetId _assetId,
AssetBookId _assetBookId,
AssetTransType _assetTransType,
[boolean _returnledgerDimension,
AssetPostingProfile _assetPostingProfile])
Microsoft Dynamics AX 2012 (SYS)
client server public static LedgerDimensionDefaultAccount findAssetLedgerDimension(
AssetId _assetId,
AssetBookId _assetBookId,
AssetTransType _assetTransType,
[boolean _returnledgerDimension,
AssetPostingProfile _assetPostingProfile])
Run On
ClientOrServer
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.
- _returnledgerDimension
Type: boolean
A Boolean value that indicates whether to post the transaction to the LedgerDimension table or the OffsetLedgerDimension table.
- _assetPostingProfile
Type: AssetPostingProfile Extended Data Type
The posting profile to use; optional.
- _assetDocumentType_JP
Type: AssetDocumentType_JP Enumeration
The japan asset document type; optional.
- _assetGroupId
Type: AssetGroupId Extended Data Type
The fixed asset group; optional.
Return Value
Type: LedgerDimensionDefaultAccount Extended Data Type
The ledger dimension or the OffsetLedgerDimension to which to post the transaction.
Remarks
This method makes up to three attempts to find the ledger dimension or the OffsetLedgerDimension. If the _assetPosingProfile parameter is not specified, the method will use the profile that is stored in the AssetParameters table.