After using the API to punch employees in and out the TimeTrex admin interface has stopped showing any Punches and the API call to get punches returns nothing. I had this trouble when testing the system but I ended up reinstalling which had fixed it for a day.
Here's what the Punches admin window looks like:
http://i.imgur.com/Ub62tjN.png
This is my API call to get the User's punches:
$user_id = $thisUser[0]['id'];
$punch_obj = new TimeTrexClientAPI('Punch');
$filter = array('filter_data' => array('user_id' => $user_id));
try {
$result = $punch_obj->getPunch($filter)->getResultData();
return $result;
} catch(Exception $e){
return null;
}
I can enable logging again and provide a copy but all it said was that the API was called and 0 rows were returned.
What have I done wrong, how can I fix it and how can I prevent this from happening again?
Thanks,
Andrew
All punches not showing and API query fails
Re: All punches not showing and API query fails
Do you see punches under Attendance -> TimeSheet for this employee, for any period of time?