Wes Gamble
03/30/2022, 5:49 PMdef self.item_fulfillment(salesorder_id:)
<<~STOP
SELECT Transaction.id, Transaction.status
FROM Transaction
JOIN TransactionLine
ON TransactionLine.Transaction = Transaction.id
WHERE Transaction.Type = 'ItemShip'
AND TransactionLine.CreatedFrom = '#{salesorder_id}'
STOP
end
I can, of course, pull this id via SuiteQL and then pull the IF record by REST to get the decoded status but would rather pull it in query if possible.michoel
03/30/2022, 10:28 PMBUILTIN.DF(transaction.status)
Wes Gamble
04/01/2022, 3:19 PM