Vaibhav Jain
09/04/2024, 7:26 AMCeligo AI
09/04/2024, 7:26 AMAI generated answer (using internal Slack threads):In NetSuite, the GL code information is typically stored in the
Account
record. When you're using SuiteQL to fetch transactions, you can join the Transaction
table with the Account
table to get the GL code information.
Here's a simple example of how you might do this:
sql
SELECT T.id, T.type, T.date, A.acctname, A.acctnumber
FROM Transaction T
JOIN Account A ON T.account = A.id
WHERE T.type = 'Journal'
In this example, T.account
is the account ID on the transaction, A.acctname
is the account name (which often includes the GL code), and A.acctnumber
is the GL code itself.
Please note that the actual field names and table names may vary depending on your NetSuite setup. You may need to adjust the query to match your specific configuration.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
09/04/2024, 7:26 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.850735128
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.843904495
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.842333555
Celigo AI
09/04/2024, 7:26 AM