system.kanoa.quality.event.updateChkShtStatus(chkShtEventId, chkShtStateId, userId)
Updates a check sheet event status
Parameters
chkShtEventId Integer: Id of check sheet event to update
chkShtStateId Integer: Id of check status status to update to
userId Integer
Returns
# of records modified Integer
Example
chkShtEventId = 123
chkShtStates = system.kanoa.utilities.convertDatasetToDict(system.kanoa.quality.sheet.getStates({'enabled': True}), 'chkShtStateName', 'chkShtStateId')
chkShtStateId = chkShtStates['Approved']
userId = 456
retVal = system.kanoa.quality.event.updateChkShtStatus(chkShtEventId, chkShtStateId, userId=user_id)