Does anyone know how to get the total quantity of an item (inventory item i guess) that's available? Is it a field someplace or do I need to add up quantities at all locations somehow? I see
quantityavailable
as a field all over the place in the schema/record documentation but its always undefined when i try to log it.
👀 1
b
battk
04/30/2019, 2:00 AM
qunatityavailable as a body level field means your NetSuite account is not following best practices and does not use multi-location inventory.
battk
04/30/2019, 2:01 AM
If you are loading the record, add up the inventory quantities from the locations sublist
battk
04/30/2019, 2:03 AM
if you are using a search, add up quantities from columns with names like location on hand