问题
I am looking to integrate with NetSuite from an external quoting system. Everything works fine if I use standard Non-Inventory Items and I am able to create a Sales Order.
The problem that I run into is when I add a line that is an Item Group, it instantiates a new copy of all of the items that are part of that Item Group which do not have all the defaults needed to properly save.
I have tried to extract a SalesOrder that I had manually created in NetSuite with Item Groups, and then map that back to a new SalesOrder request, and that too also results in the same error.
I would like to be able to leverage item groups, curious to know if there is a way for this to work through the API, or will I need to write SuiteScript?
回答1:
So, an 'Item Group' is really nothing more than a pre-baked "Client-Side only" script. It simply stores the ids of the items in the group .. then when you choose it, it populates the lines (in the browser) with those item ids.
Because of this, Item Groups cannot be used server-side. So, you can't use them in scripts or integration.
来源:https://stackoverflow.com/questions/43972971/creating-a-salesorder-within-netsuite-with-item-groups