using record.getLineItemCount('location')?
# suitescript
i
using record.getLineItemCount('location')?