PurchMatchingPolicyManager::findMatchingPolicy Method [AX 2012]

Determines the matching policy based on the specified parameters.

client server public static PurchMatchingPolicyOption findMatchingPolicy(
    InventTable _inventTable, 
    VendTable _vendTable, 
   [EcoResCategoryId _ecoResCategoryId, 
    boolean _showError])

Run On

Called

Parameters

_inventTable
Type: InventTable Table
The InventTable record to check for matching policy.
_vendTable
Type: VendTable Table
The VendTable record to check for matching policy.
_ecoResCategoryId
Type: EcoResCategoryId Extended Data Type
The record ID of the EcoResCategory record.
_showError
Type: boolean

Return Value

Type: PurchMatchingPolicyOption Enumeration
The matching policy for the parameters.

This method will check for the matching policy in the following order for items: item or vendor, item, vendor, and company.

This method will check for the matching policy in the following order for categories: purchasing policy, vendor, and company.

Show: