There are instances where the user would like to automatically bill their Sales Order, transforming it into a Cash Sale or into an Invoice.
The user then uses the record API, nlapiTransformRecord, but there are times when they are getting an error stating "That is not a valid record transformation".
The said error is being encountered when the form that the Sales Order is using is an inappropriate form.
When transforming Sales Orders to Cash Sales, the form that the Sales Order should be using is that of the Sales Order - Cash Sale while the Sales Order - Invoice form should be used when transforming Sales Orders to Invoices.
Please take note that Standard Sales Order form will not work on either transformation.