Creating a SalesOrder within NetSuite with Item Groups

 ̄綄美尐妖づ 提交于 2019-12-25 09:46:34

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!