1) When I filter the user API for phone_id (also called punch_id in a couple of things I've read), I get all records. If I do the same search using employee number, I get a single record. Is there something special about filtering on the phone_id? If filtering by phone_id (or one of the other id's in the API) is only available in the commercial version, I'm good with that, I just need to know.
2) I want to implement a system that punches employees in and out based on a "big red button" in an application I wrote and/or allows the employees to clock in from their Asterisk desk phone. (See long note below) In order to do those, I need to find out if an employee is authorized a lunch break in their current scheduled shift. This is so they can "push the button" when they sit down and be "on the clock". When they push the button at lunch time (based on their meal policy for this shift) I want to clock them out to lunch, and then push the button to punch them back in from lunch when they come back. At the end of the day, I want to clock them out for the day. There will be exceptions (people get sick, or leave at lunch and take LWOP for the afternoon) and handling that manually is fine. The question then is "where can I get the employee's current meal policy information for the shift they are currently in?" If someone's feeling magnanimous, you can also mention the short version of the same question for the "Break Policy" object associated with the current shift. That way, if they're authorized a couple of cigarette breaks, we can document that.
3) If I want to run the big-red-button PHP script on a whole slew of remote machines or on the Asterisk phone servers that talk to the SOAP API on the server, do I need anything more from TimeTrex than the ".../TimeTrex/classes/modules/api/client/TimeTrexClientAPI.class.php" file (or perhaps the ".../api/client/" directory) installed on the remote machines? I know there are a lot of dependencies that I'll need to install, but is this PHP class definition the only one I'll need to add to the server update package for the rest of the workstations? I'm in complete control of the workstations and servers but I don't want to have to install the entire TimeTrex distribution on every workstation for a file or two.
Unless you want to read me whining, you should stop here.
![Smile :-)](./images/smilies/icon_smile.gif)
Background notes: This business application runs on a few hundred workstations and provides the employees with everything they need to do their job. it already integrates custom code, Asterisk dialer support, SugarCRM, and RT4 to give them everything they need on (basically) a single screen. Having them log out of the app, log into anything else, and log back into the app takes more time than the floor guys are willing to donate. Because of that, if I can't implement the big boss' additional "features" in the app, they don't want me to do it. They are spread out all over campus and a distributed time accounting system has already been discussed and shot down hard (the boss is already tired of paying for the time it takes to get from the existing time clocks to the workstations). The hand-jammed time accounting system is starting to make the bookkeeper a little testy and there are other things that we'd like to start tracking other than meals and breaks (like production quotas and client time codes), so moving to the next level will require SOMETHING, and I think TimeTrex is the answer to the question. The problem is that I need to show her how we're going to do this before she'll break loose any of her kids' future inheritance. So, we're starting with the community version to see if this is going to work. After that, she'll decide on what direction I end up going to support her needs.
Any help you can provide would be greatly appreciated.