We are trying to filter transactions basis GL codes using suiteQL. Can somebody help with the table and data field where GL code information is stored
We are trying to filter transactions basis GL codes using suiteQL. Can somebody help with the table and data field where GL code information is stored?
GL codes are stored in the account table. When you’re trying to filter transactions by GL codes using SuiteQL, you’ll generally be working with the transaction table and joining it with the account table to get the specific GL codes.
Sample SuiteQL query:
SELECT
t.tranid AS transaction_id,
t.trandate AS transaction_date,
tl.amount AS line_amount,
a.acctnumber AS gl_code,
a.acctname AS gl_name
FROM
transaction t
JOIN
transactionline tl ON t.id = tl.transaction
JOIN
account a ON tl.account = a.id
WHERE
a.acctnumber = ‘XXXX’ — Replace with your GL code



