How would i get all vendor bills lines for a vendo...
# suiteql
u
How would i get all vendor bills lines for a vendor where the lines have a specific account id?
j
Something like
Copy code
SELECT transactionline.*
FROM transaction
JOIN transactionline ON transaction.id = transactionline.transaction
WHERE transaction.entity = <vendor_id>
AND transaction.type = ‘VendBill ’
AND transactionline.expenseaccount = <account_id>
?
🙌 1
u
Thanks Jen! ill give this a try
j
I mean I don’t know if that’s correct, it’s 7am and I haven’t had coffee yet
😂 1