Share via


InventPosting::siteAccountNum_CN Method

Uses the information of account, item, and site to find the matched ledger account 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 account. Then search again with "site code" = SiteCode_CN::All and "site relation" = ''.

Syntax

client server private static LedgerDimensionDefaultAccount siteAccountNum_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
The matched ledger account. If not matched, return ''.

See Also

Reference

InventPosting Table