added validation to only consider orders that haven't been canceled or invoiced for appointmen/order creation/modification.
added validation to only consider orders that haven't been canceled or invoiced for appointmen/order creation/modification.

jeacaveo/planning_70,jeacaveo/planning_70