Hi, I'm trying to automate unlinking a customer deposit from a sales order so it can be applied to a another sales order. The only way I'm aware of doing this is by manually changing the form in the UI to a cash sale form, clicking OK on the native warning message, saving the record and then changing back to the sales order form. I've tried changing the form to unlink the customer deposit via UES, Client and Suitelet approach with no luck. I can change the form successfully in the script but it doesn't unlink the deposit. It seems like you need to click OK on the native warning message for it to unlink the deposit. The manual process can be found on the SuiteAnswer article linked below. Has anyone done this or something similar successfully and what approach did you take?
https://suiteanswers.custhelp.com/app/answers/detail/a_id/24086/loc/en_US