Reputation: 160
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
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