|
|
@@ -360,14 +360,14 @@ namespace PRS.Mobile
|
|
|
if (tracker != null)
|
|
|
CreateTimeSheet(tracker.JobID, tracker.JobNumber, tracker.JobName, here, App.GPS.Address, "Clocking On");
|
|
|
}
|
|
|
- else
|
|
|
+ else if ((!App.GPS.Latitude.Equals(0.0F)) && (!App.GPS.Longitude.Equals(0.0F))
|
|
|
+ || InABox.Core.Security.IsAllowed<CanBypassGPSClockIn>())
|
|
|
{
|
|
|
- if ((!App.GPS.Latitude.Equals(0.0F)) && (!App.GPS.Longitude.Equals(0.0F)))
|
|
|
- {
|
|
|
var job = await ChooseNearbyJob(here);
|
|
|
CreateTimeSheet(job?.ID ?? Guid.Empty, job?.JobNumber ?? "", job?.Name ?? "" , here, App.GPS.Address, "Clocking On");
|
|
|
- }
|
|
|
- }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
Dispatcher.BeginInvokeOnMainThread(RefreshScreen);
|
|
|
}
|
|
|
@@ -725,7 +725,7 @@ namespace PRS.Mobile
|
|
|
if (App.GPS.TimeStamp < DateTime.Now.Subtract(new TimeSpan(0, 5, 0)))
|
|
|
{
|
|
|
App.GPS.GetLocation(true);
|
|
|
- return "Searching for GPS";
|
|
|
+ return InABox.Core.Security.IsAllowed<CanBypassGPSClockIn>()? "" : "Searching for GPS";
|
|
|
}
|
|
|
return App.GPS.Address;
|
|
|
}
|