Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Uses the information of account, item, and site to find the matched ledger account with specified InventAccountType and backup InventAccountType*.If no ledger account mathch with InventAccountType, then search with the backup InventAccountType*.
Syntax
server private static LedgerDimensionDefaultAccount accountItemSiteWithBackup_CN(
InventAccountType _accountType,
InventAccountType _backupAccountType,
InventSiteRelation_CN _siteRelation,
ItemId _itemNum,
ItemGroupId _itemGroup,
InventCategoryRelation _itemCategory,
CustVendAC _accountNum,
CustVendGroupId _accountGroup,
TaxGroup _taxGroup)
Run On
Server
Parameters
- _accountType
Type: InventAccountType Enumeration
The primary InventAccountType for searching.
- _backupAccountType
Type: InventAccountType Enumeration
Backup InventAccountType.
- _siteRelation
Type: InventSiteRelation_CN Extended Data Type
Site value.
- _itemNum
Type: ItemId Extended Data Type
Item number.
- _itemGroup
Type: ItemGroupId Extended Data Type
Item group.
- _itemCategory
Type: InventCategoryRelation Extended Data Type
Item category relation.
- _accountNum
Type: CustVendAC Extended Data Type
Account number.
- _accountGroup
Type: CustVendGroupId Extended Data Type
Account group.
- _taxGroup
Type: TaxGroup Extended Data Type
Tax group.
Return Value
Type: LedgerDimensionDefaultAccount Extended Data Type
The matched ledger account.
Remarks
The priority of site is the lowest among item, account and site.