Weird thing is that the code was working well sinc...
# suitecommerce
v
Weird thing is that the code was working well since almost 2-3 weeks now. It first creates a Sales Order (SS 1.0), then creates a customer deposit and sets the sales order to the one created earlier. It started throwing that error since yesterday.