Mick Peters
Board Regular
- Joined
- May 18, 2015
- Messages
- 93
Hi I am posting this in the lounge as I do not have a specific question I am just hoping to sound out a few ideas.
I am in the process of creating a register where people only use a barcode scanner to log in and out.
I have most of the code together and have it working to a point.
The problem I am pondering is that if the person only comes in and goes home again then all works well they are registered in and if a fire drill is called they are shown as on site. IF they log out I match the in with the out and the no longer show as on site.
The problem comes if the log in then go out for a while, logging out, and then return. As I am matching on the persons name and the location they work in both in's match the 1 out.
I have thought about date and time stamps but they would not match. I have thought about counting the in's against the outs but the register would run for a week not day to day as we work 24 /6.5.
I have also thought about having the user scan in1 , in2, in3 and then the corresponding out but that relies on them remembering to scan the correct numbered entry exit.
I am not looking for the complete answer just some ideas about how others would approach it.
Any ideas gratefully received.
I am in the process of creating a register where people only use a barcode scanner to log in and out.
I have most of the code together and have it working to a point.
The problem I am pondering is that if the person only comes in and goes home again then all works well they are registered in and if a fire drill is called they are shown as on site. IF they log out I match the in with the out and the no longer show as on site.
The problem comes if the log in then go out for a while, logging out, and then return. As I am matching on the persons name and the location they work in both in's match the 1 out.
I have thought about date and time stamps but they would not match. I have thought about counting the in's against the outs but the register would run for a week not day to day as we work 24 /6.5.
I have also thought about having the user scan in1 , in2, in3 and then the corresponding out but that relies on them remembering to scan the correct numbered entry exit.
I am not looking for the complete answer just some ideas about how others would approach it.
Any ideas gratefully received.