not sure but you don't need this in the else do yo...
# suitescript
n
not sure but you don't need this in the else do you? linkedPOs = [];