Share via


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.

Return Value

Type: LedgerDimensionDefaultAccount Extended Data Type
A ledger dimension for a particular inventory account type.

See Also

Reference

InventPosting Table