I have a very simple transform Sales Order to Cash Sales. When I go on the sales order and Bill, all is fine, it create the Cash Sales. But when I do it in Suite Script it return an error.
Below is the script and the error. I don't know where to look. Any idea ?