Hi all, I am using N/commerce/recordView module to...
# suitescript
p
Hi all, I am using N/commerce/recordView module to get the stock info of the item. It is giving correct info when i pass the internalid of the child item. but when i pass the internalid of the item which has no child item then it always gives 'true' even if item is out of stock. Do i anybody know why is this happening? Code i have used
Copy code
recordView.viewItems({
                                  ids: [internalid],
                                  fields: ["isinstock"]
                                  });