🤔 if the salesorder has items pending billing I'm not sure what would be wrong
to be clear the third argument to getLineItemValue is the relative position of the line in the sublist, not any internal id
but you said you're passing 1 which should get the first item