InventPosting::siteAccountNumLedgerDimension_CN Method
Uses the information of account, item, and site to find the matched ledger dimension with specified InventAccountType. The information of item and account are static. But for site, it is not static.
If site is not '' and there is not a matched ledger dimension. Then search again with "site code" = SiteCode_CN::All and "site relation" = ''.
Syntax
client server private static LedgerDimensionDefaultAccount siteAccountNumLedgerDimension_CN(
InventAccountType _accountType,
InventSiteRelation_CN _siteRelation,
InventPostingItemCode _itemCode,
ItemRelation _itemRelation,
InventCategoryRelation _categoryRelation,
TableGroupAll _accountCode,
CustVendRel _accountRelation,
TaxGroup _taxGroup,
[TableGroupAll _costCode,
CostRelation _costRelation])
Run On
Called
Parameters
- _accountType
Type: InventAccountType Enumeration
The InventAccountType for searching. If it is not related to site, call the original InventPosting::accountNum(...) directly.
- _siteRelation
Type: InventSiteRelation_CN Extended Data Type
Site value.
- _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 relation.
Return Value
Type: LedgerDimensionDefaultAccount Extended Data Type
A ledger dimension for a particular inventory account type.