Share via


InventPosting::itemLedgerDimensionSite_CN Method

Uses the information of item and site to find the matched ledger dimension with specified InventAccountType.

Syntax

server private static LedgerDimensionDefaultAccount itemLedgerDimensionSite_CN(
    InventAccountType _accountType, 
    InventSiteRelation_CN _siteRelation, 
    ItemId _itemId, 
   [ItemGroupId _itemGroup, 
    InventCategoryRelation _itemCategory, 
    boolean _searchTable, 
    boolean _searchGroupId, 
    boolean _searchCategory, 
    boolean _searchAll])

Run On

Server

Parameters

  • _searchTable
    Type: boolean
    Bool value to indicate whether to search in specific table. Default is true.
  • _searchGroupId
    Type: boolean
    Bool value to indicate whether to search in specific group. Default is true.
  • _searchCategory
    Type: boolean
    Bool value to indicate whether to search in specific category. Default is true.
  • _searchAll
    Type: boolean
    Bool value to indicate whether to search in all objects. Default is true.

Return Value

Type: LedgerDimensionDefaultAccount Extended Data Type
The matched ledger dimension. If not matched, return 0.

Remarks

The priority of site is lower than item.

See Also

Reference

InventPosting Table