I am working on a feature to transfer customer deposits between sales orders(of course for same customer). I found an answer on SuiteAnswers on how to unlink a customer deposit