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

  • _returnledgerDimension
    Type: boolean
    A Boolean value that indicates whether to post the transaction to the LedgerDimension table or the OffsetLedgerDimension table.

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.

See Also

Reference

AssetLedgerAccounts Table