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
How to write to line level department on Invoice
Hi,
We currently have a POS integration. The solution links up our POS system to NetSuite and creates an invoice for every sale. The invoice is created through a locked custom form. The problem I am having is the locked form does not include the line level department field. We want to be able to track the line level department on these POS sales.
The solution I have so far is a script that runs on invoices / the custom form. It switches the form to another custom form that we created that includes the line level department field. After the new form is set it looks through the items on the invoice. It looks at the item department and is supposed to write that department to the line level department on the new custom form. Everything works fine except I cannot get the department to write to the form. Below is my code, any idea why department isn't writing to the form? Thank