RequisitionRepCatAccessPolicyRuleData::categoryAllowedByPolicy Method
Checks if given category is allowed by category access policy for replenishment requisition.
Syntax
client server public static boolean categoryAllowedByPolicy(
RefRecId _categoryRecId,
[RecId _employerRecId,
RecId _departmentRecId])
Run On
Called
Parameters
- _categoryRecId
Type: RefRecId Extended Data Type
An instance of the RefRecId class for the EcoResCategory table to denote a category.
- _employerRecId
Type: RecId Extended Data Type
The employer record ID.
- _departmentRecId
Type: RecId Extended Data Type
The department record ID.
Return Value
Type: boolean
false if a CatProcurementCache record with valid data is not found for current user, or if there is currently-effective purchasing policy but the given category is not explicitly allowed by the policy.
Remarks
If the optional _employerRecId and _departmentRecId are not specified the record in the CatProcurementCache table for the current logon user is used to get policy.
If _employerRecId and _departmentRecId are not specified and the record is not found, false is always returned.