Quentin CHURET
10/14/2024, 9:56 AMCeligo AI
10/14/2024, 9:56 AMAI generated answer (using internal Slack threads):To get the transaction tax total using the transaction table in SuiteQL, you can use the
TransactionLine
table which contains the tax details for each line item in a transaction.
Here's a basic example of how you might structure your SuiteQL query:
sql
SELECT
Transaction.ID,
Transaction.TranID,
TransactionLine.TaxCode,
TransactionLine.TaxAmount
FROM
Transaction
INNER JOIN
TransactionLine ON Transaction.ID = TransactionLine.Transaction
WHERE
Transaction.Type = 'Your Transaction Type'
In this query, Transaction.ID
is the unique identifier for each transaction, Transaction.TranID
is the transaction ID, TransactionLine.TaxCode
is the tax code applied to the line item, and TransactionLine.TaxAmount
is the tax amount for the line item.
Please replace 'Your Transaction Type'
with the type of transaction you are interested in (e.g., 'SalesOrder', 'Invoice', etc.).
This will give you the tax details for each line item in the specified transactions. If you want the total tax for each transaction, you can modify the query to group by transaction ID and sum the tax amounts.
******
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
10/14/2024, 9:56 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.830337
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.827312768
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.822068453
Celigo AI
10/14/2024, 9:56 AM