Jamesckel
Jamesckel

Reputation: 160

Suitescript Identify fulfilled items on sales order?

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

Upvotes: 0

Views: 339

Answers (1)

wozzarvl
wozzarvl

Reputation: 364

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' }
    }

Upvotes: 1

Related Questions