I am trying to write a script that will check a bo...
# suitescript
m
I am trying to write a script that will check a box if all of the line items are fully committed. Per line, if (closed = true OR quantitycommitted = quantity) then continue, otherwise return. If all lines met that rule, then we check the box. I am able to get all of the quantity fields that I need via get SublistValue, but closed returns as "undefined" regardless of whether closed is checked or not. Any thoughts?
e
getSublistValue({sublistId:'item', fieldId: '*isclosed*', line:0})
s
Also, I would probably null check on quantitycommitted as I am not sure it always returns 0