Suitescript Identify fulfilled items on sales order?

166 Views Asked by At

I am trying to identify which line items on a sales order have been fulfilled and which not. I cannot find a field for this on the item record. I need to perform an operation after certain item types have been fulfilled. Thank you, James

1

There are 1 best solutions below

4
On

you can loop the items

      for (var i = 0; i < SaleOrder.getLineCount({sublistId: 'item'}); i++) {
 var quantityFullfiled=   SaleOrder.getSublistValue( { sublistId: 'item', line: i, fieldId: 'quantityfulfilled' }
    }