One of the columns in item list is "Picked" which is a picked quantity for the item line. But, I cannot find its field name. Then, I try to use the following coding to retrieve picked quantity (quantitypicked) of an item line from Transfer order / Sales Order. But, didn't success as Netsuite returns an undefined value. The method of counting fulfilled quantity in item fulfilment cannot be used as user may input an item in two different item lines.
var tranrec = record.load({
type: fnRecType,
id: fnId,
isDynamic: true,
});
tranrec.selectLine({
"sublistId": "item",
"line": 0
});
var ItemPickedQty = tranrec.getCurrentSublistValue({
sublistId: "item",
fieldId: "quantitypicked"
});