All punches not showing and API query fails

General support regarding TimeTrex, such as
configuring policies/taxes or processing payroll.
Post Reply
andrew
Posts: 1
Joined: Fri May 29, 2015 4:00 am

All punches not showing and API query fails

Post by andrew »

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
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: All punches not showing and API query fails

Post by shaunw »

Do you see punches under Attendance -> TimeSheet for this employee, for any period of time?
Post Reply