InventPosting::costItemLedgerDimension Method
Determines the account to post costs to.
Syntax
server public static LedgerDimensionDefaultAccount costItemLedgerDimension(
InventAccountType _accountType,
CostGroupId _costGroup,
ItemId _itemId,
[ItemGroupId _itemGroup])
Run On
Server
Parameters
- _accountType
Type: InventAccountType Enumeration
The account type.
- _costGroup
Type: CostGroupId Extended Data Type
The cost group.
- _itemId
Type: ItemId Extended Data Type
The item number.
- _itemGroup
Type: ItemGroupId Extended Data Type
The item group; optional.
Return Value
Type: LedgerDimensionDefaultAccount Extended Data Type
A ledger dimension.
Remarks
This method first uses the cost group and cost group type to find the account, and then uses the item and item group.This method is currently only used to post standard cost variances.