Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Transform salesorder into cashsale
Hey Everyone,
I know this has been covered a number of times on this forum, but none of the answers seem to correct my issue.
Everytime I try to run basic code to transform a sales order to a cash sale after submit, I get the following err:
INVALID_INITIALIZE_REF Details: You have an invalid sales order 9166560 or the order is already closed
The status of the SO is always pending approval when I inspect it via the debugger. I already have 'Advanced Shipping' enabled as someone suggested before. I have also tried enabling "Invoice in Advance of Fulfillment". No matter what I get the above error. The code is pretty barebones, and I feel like it should work, though it does not. Any help would be appreciated.