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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
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