changed default from draft to pending. added check in button to change state of all appointments in a day and create pos.order. don't create pos.order when appt is created and only update pos.order when appt is modified if it's state is open/confirmed.
changed default from draft to pending. added check in button to change state of all appointments in a day and create pos.order. don't create pos.order when appt is created and only update pos.order when appt is modified if it's state is open/confirmed.

jeacaveo/planning_70,jeacaveo/planning_70