Click or drag to resize

GetTimePunchStateModelPunchStatus Property

The status to indicate if a punch is valid or blocked.

Namespace: AppOne.Services.V2.Contracts
Assembly: AppOne.Web.Service (in AppOne.Web.Service.dll) Version: 1.0.141
Syntax
public string PunchStatus { get; set; }

Property Value

String
Remarks
The status to indicate if a punch is "Valid" or "Blocked". A "Blocked" punch indicates that a configuration rule is setup that prevents the user from performing some punch types. A status that is "Valid" indicates that no restriction is in place that keeps the user from performing a punch type that they have access to punch against.

Note  Note
Just because a punch is in a "Blocked" state does not mean that some punch types are still accessible. For example if a user has a Meal Break rule setup then the status may return "Blocked". The PunchMessage might look return something like: "User is not eligible for a Begin Break until 5/5/2015 5:32:00 PM". The user is still able to perform a transfer or clock out however if trying to enter in a begin meal punch before 5:32PM when result in a blocked message.
Caution note  Caution
The punch statuses for a manager can differ in the different user interfaces. For example a manager view may have an "End Break" as an option, where the employee doesn't see this in their interfaces. An employee may not have the option to use breaks, then this will affect the results for the Model returned. The Model is tightly coupled with how an "Employee's View" is shown. For a better correlation of the results returned in this Model see the "Employee's Dashboard".

Payroll Policies effect the punch types that an employee can view. Be sure to review the payroll policy assigned to the user. For example if a user was assigned to a payroll policy that didn't allow breaks or meals then logging in as the employee would not allow them to punch against the "Begin Break"/"End Break" or "Begin Meal"/"End Meal" options, however these options still may be visible to a manager.
Example
"Blocked" or "Valid"
See Also