How do we pull the *subsidiary* shown at the heade...
# suiteql
s
How do we pull the subsidiary shown at the header level of a sales order via SuiteQL? It doesn't appear to be on the transaction table like it is in suitescript?
I see subsidiary at the line level, but not at the body level.
t
@stalbert Join to the "mainline" lineitem, like this:
Copy code
SELECT
	Transaction.TranID,
	Transaction.TranDate,
	TransactionLine.Subsidiary
FROM
	Transaction
	INNER JOIN TransactionLine ON
		( TransactionLine.Transaction = Transaction.ID )
		AND ( TransactionLine.MainLine = 'T' )
WHERE
	( Transaction.Type = 'SalesOrd' )
s
interesting, thanks always @tdietrich
t
No problem.