Menu
Index > Cats: Helpers, Todo and TodoValues

approvalNeeded

approvalNeeded($todo_values)

Description:

Options:

Example:

/**
 * Determine if a Deal requires attention because a valid TodoValue.todo_value exists and has not been approved.
 * 
 * Iterate through TodoValues to determine if any TodoValue.todo_value requires attention from someone with approval authority.
 *
 * A TodoValue that requires attention:
 *	- TRUE a TodoValue.approval_required (check first for the customized value) OR Todo.approval_required (the default value) is true
 *	- TRUE a validated TodoValue.todo_value exists
 *	- IS NULL TodoValue.approval_user_id
 *
 * 
 */