You just need to ``` if (customerpo) { return ch...
# suitescript
e
You just need to
Copy code
if (customerpo) {
  return checkDuplicate(...); // <= result needs to be returned
} else {
  ...
}