We are having an issue with our Sales Orders when they are created for a Lead Customer.
Currently, when people sign up for our newsletters, they are brought into our system as a Lead. If a Sales Order is created for them, they are transformed into Customers and their status changes from "Lead-Unqualified" to "CUSTOMER-Current Customer(100%)". This is NetSuite functionality.
Our issue occurs when the customer is part of a parent/child relationship. When a customer is created through web services, it inherits specific fields from the parent customer that are transferred to the Sales Order. But when a lead already exists in our system, the Sales Order is created for them before they can be transformed into a Customer. This causes fields from the parent customer to not be transferred over to the Sales Order.
We are looking for a way to edit the Sales Order after it has been created, but only if it has been created for a customer who was once a Lead. We basically need to modify the Sales Order after the Status on the Lead changes to "CUSTOMER-Current Customer(100%)".
We know that there is no user event recorded when a lead turns into a customer, so we are having a hard time figuring out where to start. Any ideas on how we can accomplish this?