Hello, I have a SO with line items with modified d...
# general
i
Hello, I have a SO with line items with modified descriptions. and I am transforming it into an invoice through a Suitelet Script with this code:
Copy code
objRecord = record.transform({
  fromType: record.Type.SALES_ORDER,
  fromId: salesorderId,
  toType: record.Type.INVOICE,
  isDynamic: true,
});
However, the modified descriptions do not get copied; the line items show their original descriptions. I assume that it has to do with some setup, since the Suitelet Script does not include anything else affecting the line items. Where in the setup, if anywhere, are the preferences for this? 🤔
m
What happens when you create an invoice in the UI?
i
When creating the invoice manually, I can modify the description without problems.
m
It should default in script to whatever it does in the UI. If you have to manually change the values in the UI you will gave to do the same in your script.