Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Determines the ledger dimension for posting cost with site information.
If the _accountType is not related to site, just call costItemLedgerDimension and ignore the site information.
Syntax
server private static LedgerDimensionDefaultAccount costItemLedgerDimensionSite_CN(
InventAccountType _accountType,
InventSiteRelation_CN _siteRelation,
CostGroupId _costGroup,
ItemId _itemId,
[ItemGroupId _itemGroup])
Run On
Server
Parameters
- _accountType
Type: InventAccountType Enumeration
The InventAccountType for searching.
- _siteRelation
Type: InventSiteRelation_CN Extended Data Type
Site relation.
- _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
The priority of site is the lowest among item, account and site.