1.0.40a

Items:
• add sign and pay button to PPM script page
• choose which endpoint to go to from a user name? $ before username to choose dev
default and prod use
http://web01.tpointsolutions.net/aspect_mobileservices_1.0.40/
dev ($ before username which is stripped out) uses
http://devweb01.tpointsolutions.net/aspect_mobileservices_dev_0.35/

Bug fixes:
• Enter username and password, clicked ‘Clear’. Username was cleared but password remained. However, it did still need to be entered again for login to work
Reason: the text of the password was reset to “Password”, but the type remained “password” so showed the obfuscation characters.

• Job finishes even without entering any payment details – I selected Cash but did not enter an amount, clicked Save & Finish and it ended the job. The same happened when I selected ‘Payment not taken’ without entering a reason. These should be required fields shouldn’t they?
Will now check for any value in both of these. 

• Stuck in loading mode – BUG (offline getting calculated ETA)
Reason: multiple error paths depending on what was available online, google may not have been resolved to do location mapping, or the GPS stack may have failed in airplane mode.  Both of these should now be handled.
There is also the case when all these are available, but google never actually returns do to a mid-session disconnect, this should be handled by an online check at the start of the function.

3 scenarios:
Online login, then offline
Offline from start
Online up to the report page, go offline then click auto ETA

• “No items currently loaded” displays correctly but ‘Add new record’ still shows but shouldn’t
Reason: it was pulled outside of the label which used to make it invisible, the check is now applied on the id=“itemsUsed” container

No Repros:
• Also cannot select a Start time if work was started earlier than the ETA. Example, ETA is set to 12.30. If I want to set the start time to 12.20, there is no option to do so. You can only select ‘Now’ which is the current time. 

possibly same issue as "• When setting the start time, if NOW is selected then yellow time circle cannot be clicked to select a different / earlier time. Works fine with End time" which still needs further investigation

• Calendar Notification appears on phone when estimated finish time is not input:  ‘Please check your estimated finish time’ – 1 October 18:00 Aspect Mobile

[Dave] On deleting the calendar event, no new event is created by entering the screen, only when the estimated finish is added is a calendar event

• Incorrect Error when saving the report – “The End time must be after the Start time” even though it was ETA was set to 12:30, Start time was set to 12:34, End time was set to 12:45. However, when I changed the End time to ‘Now’, it saved just fine. Only happened in two tests. Other tests ran fine and this error did not occur again.

The only way I can see this happening is if the start date was entered a day after the end date (so looks like it is before, but is actually on the day after)?
• When setting the start time, if NOW is selected then yellow time circle cannot be clicked to select a different / earlier time. Works fine with End time.

FIXED 1.0.40 – issue with calling through to setTimeConstraints() on clicking the now buttons, the startNow button has to affect the min time of end, so the startNow attempts to open and close the end picker so that it registers as closed, and when the closed comes back it can do the min time modification on the end picker.
Fixes for Sign & Pay buttons to not show until start and end times are entered.

fix for styling of "Could not save", "saving...", "save" etc. to include additional buttons.