InventPosting::accountNumLedgerDimensionWithSite_CN Method
Uses a set of parameters including site info to find the matched ledger dimension.
Syntax
server public static LedgerDimensionDefaultAccount accountNumLedgerDimensionWithSite_CN(
InventAccountType _accountType,
InventSiteCode_CN _siteCode,
InventSiteRelation_CN _siteRelation,
InventPostingItemCode _itemCode,
ItemRelation _itemRelation,
InventCategoryRelation _categoryRelation,
TableGroupAll _accountCode,
CustVendRel _accountRelation,
TaxGroup _taxGroup,
[TableGroupAll _costCode,
CostRelation _costRelation])
Run On
Server
Parameters
- _accountType
Type: InventAccountType Enumeration
The InventAccountType
- _siteCode
Type: InventSiteCode_CN Enumeration
Site code.
- _siteRelation
Type: InventSiteRelation_CN Extended Data Type
Site relation.
- _itemCode
Type: InventPostingItemCode Enumeration
Item code.
- _itemRelation
Type: ItemRelation Extended Data Type
Item relation.
- _categoryRelation
Type: InventCategoryRelation Extended Data Type
Item category relation.
- _accountCode
Type: TableGroupAll Enumeration
Account code.
- _accountRelation
Type: CustVendRel Extended Data Type
Account relation.
- _taxGroup
Type: TaxGroup Extended Data Type
Tax group.
- _costCode
Type: TableGroupAll Enumeration
Cost code.
- _costRelation
Type: CostRelation Extended Data Type
Cost realtion.
Return Value
Type: LedgerDimensionDefaultAccount Extended Data Type
The related ledger dimension. Return 0 if not matched.