When creating a sales order in script, can the "fo...
# suitescript
s
When creating a sales order in script, can the "form" be specified? We are creating a sales order where the billing address is in Canada and the shipto address is in USA. The form appears to be being selected based on the billto address. When we set the shipto address we get an error indicating that "The address you have selected is based in a nexus for which you are required to charge a different kind of tax." Somehow, we need to have the selected form be for a USA ship to from the start.
e
You can specify the form's numeric ID in the
defaultValues.customform
parameter of record.create. I don't know if that will solve the taxation issues, but that is how you specify the custom form.
🙌 1
s
Thanks! will give it a go...