A company has me developing software on a contract basis. The software is for a client of the company. The project had been split into phases, with the client paying a portion of the total after the satisfactory completion of each phase. The software will be hosted by the company for the client (as a service) after the completion of the final phase.
The client has approved and paid for the first few phases. The end of the final phase is in about two weeks. I, as the developer, have only been paid for phase 1 and only a small portion of phase 2 (the rest of the money that was received for phase 2 was spent elsewhere in the company). The company is not in good financial shape and I am afraid that I will not get what I'm owed.
However, I am developing this software on a private server that only I have access to. Neither the company or the client have access to the server and cannot obtain the source code without me giving to them.
I'm just curious as to what rights I have as a developer. Am I obligated to turn over the source code, even if I am not paid? What is the best approach for me to take? There is a chance that the client would do business with me personally if the company went under. Is there anything I need to watch out for?
I have not signed any contract specific to this project. The only contract I have signed is a general 1099 when I began working with the company (I have worked on other projects for them, some of which I'm unpaid for as well). There has never been any discussion as to who is the "author" of the source code. I have not signed any non compete agreements.
Any advice?