Fix for  OVPMS-1448 NPE viewing customer appointment in a different location to the current one

git-svn-id: svn://svn.openvpms.org/openvpms/vpms/trunk@5896 9e4fa352-aafb-0310-9071-df624684024b
Merged back changes from trunk

git-svn-id: svn://svn.openvpms.org/openvpms/vpms/branches/1.8-dev@5898 9e4fa352-aafb-0310-9071-df624684024b
Changes for OVPMS-1463 Find free appointment slots.
. set correct view when switching from free slots to appointments
. changed  To date handling so now slots <= To are included. Previously, slots < To were included

git-svn-id: svn://svn.openvpms.org/openvpms/vpms/branches/1.8-dev@5902 9e4fa352-aafb-0310-9071-df624684024b
Changes for OVPMS-1466 Problems summary view

git-svn-id: svn://svn.openvpms.org/openvpms/vpms/branches/1.8-dev@5903 9e4fa352-aafb-0310-9071-df624684024b
Changes for OVPMS-1466 Problems summary view

git-svn-id: svn://svn.openvpms.org/openvpms/vpms/branches/1.8-dev@5904 9e4fa352-aafb-0310-9071-df624684024b
Merge remote-tracking branch 'remotes/1.8-dev' into 1.8-dev