Fixed workflow bug that prevented going from active to terminated status. Prevented also to clean paid invoices on termination of contract.
Improved the views.