Compartir a través de


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

  • _throwError
    Type: boolean
    A Boolean value that indicates whether errors may be thrown; 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.

See Also

Reference

AssetLedgerAccounts Table