Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
Remaining inventory qty for Work order completion
Hello,
We are integrating our MES to Netsuite and send WOC to Netsuite as needed. Before we send WOC, we query how much qty is remaining for each item in inventory detail (so we do not get to negative qty).
I have the script mostly working except for lot number. The result I get is shown below and you can see inventorynumber is null.
[
{\"internalid\":\"1970\",\"item\":\"500-000009\",\"islotitem\":null,\"binnumber\":\"\",\"location\":null,\"inventorynumber\":null,\"expirationdate\":null,\"status\":\"\",\"onhand\":\"1200\",\"available\":null},
{\"internalid\":\"1971\",\"item\":\"500-000010\",\"islotitem\":null,\"binnumber\":\"\",\"location\":null,\"inventorynumber\":null,\"expirationdate\":null,\"status\":\"\",\"onhand\":\"600\",\"available\":null},
{\"internalid\":\"1973\",\"item\":\"501-000005\",\"islotitem\":null,\"binnumber\":\"\",\"location\":null,\"inventorynumber\":null,\"expirationdate\":null,\"status\":\"\",\"onhand\":\"16500\",\"available\":null},
{\"internalid\":\"1975\",\"item\":\"501-000007\",\"islotitem\":null,\"binnumber\":\"\",\"location\":null,\"inventorynumber\":null,\"expirationdate\":null,\"status\":\"\",\"onhand\":\"13500\",\"available\":null}
]
Tagged:
0