InventPosting::accountItemLedgerDimension Method
Retrieves the specified posting ledger dimension.
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 accountItemLedgerDimension(
InventAccountType _accountType,
ItemId _itemId,
ItemGroupId _itemGroup,
InventCategoryRelation _itemCategory,
CustVendAC _accountNum,
CustVendGroupId _accountGroup,
TaxGroup _taxGroup,
[InventDim inventDim_RU,
InventSiteRelation_CN _siteRelation])
Microsoft Dynamics AX 2012 R2 (SYS)
server public static LedgerDimensionDefaultAccount accountItemLedgerDimension(
InventAccountType _accountType,
ItemId _itemId,
ItemGroupId _itemGroup,
InventCategoryRelation _itemCategory,
CustVendAC _accountNum,
CustVendGroupId _accountGroup,
TaxGroup _taxGroup,
[InventDim inventDim_RU,
InventSiteRelation_CN _siteRelation])
Microsoft Dynamics AX 2012 Feature Pack (SYS)
server public static LedgerDimensionDefaultAccount accountItemLedgerDimension(
InventAccountType _accountType,
ItemId _itemId,
ItemGroupId _itemGroup,
InventCategoryRelation _itemCategory,
CustVendAC _accountNum,
CustVendGroupId _accountGroup,
TaxGroup _taxGroup)
Microsoft Dynamics AX 2012 (FPK)
server public static LedgerDimensionDefaultAccount accountItemLedgerDimension(
InventAccountType _accountType,
ItemId _itemId,
ItemGroupId _itemGroup,
InventCategoryRelation _itemCategory,
CustVendAC _accountNum,
CustVendGroupId _accountGroup,
TaxGroup _taxGroup)
Microsoft Dynamics AX 2012 (SYS)
server public static LedgerDimensionDefaultAccount accountItemLedgerDimension(
InventAccountType _accountType,
ItemId _itemId,
ItemGroupId _itemGroup,
InventCategoryRelation _itemCategory,
CustVendAC _accountNum,
CustVendGroupId _accountGroup,
TaxGroup _taxGroup)
Run On
Server
Parameters
- _accountType
Type: InventAccountType Enumeration
The account type.
- _itemId
Type: ItemId Extended Data Type
The item number.
- _itemGroup
Type: ItemGroupId Extended Data Type
The account group.
- _itemCategory
Type: InventCategoryRelation Extended Data Type
The product category.
- _accountNum
Type: CustVendAC Extended Data Type
The customer or vendor account numbers.
- _accountGroup
Type: CustVendGroupId Extended Data Type
The customer or vendor group to which the transaction is attached.
- _taxGroup
Type: TaxGroup Extended Data Type
The tax group for the inventory item.
- inventDim_RU
Type: InventDim Table
The inventory dimension.
- _siteRelation
Type: InventSiteRelation_CN Extended Data Type
The site ID.
Return Value
Type: LedgerDimensionDefaultAccount Extended Data Type
The posting ledger dimension for the account item; otherwise, zero.