Lassi Viitakoski
12/12/2024, 10:50 AMCeligo AI
12/12/2024, 10:51 AMAI generated answer (using internal Slack threads):To get the tax amount of an item line using SuiteQL, you can use the
transactionline
table which contains the tax information. However, you need to join it with the appropriate tables to get the desired information.
Here is a sample SuiteQL query that might help you:
sql
SELECT
transaction.internalid,
transaction.trandate,
transactionline.line,
transactionline.taxcode,
transactionline.taxrate,
transactionline.grosstaxamount
FROM
transaction
INNER JOIN
transactionline
ON
transaction.internalid = transactionline.transaction
WHERE
transaction.type = 'SalesOrd'
This query will return the internal ID of the transaction, the transaction date, the line number, the tax code, the tax rate, and the gross tax amount for each line of a Sales Order.
Please note that the actual field names may vary based on your NetSuite setup, so you might need to adjust the query accordingly.
******
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
12/12/2024, 10:51 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.822842121
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.8183797
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.818248212
Celigo AI
12/12/2024, 10:51 AM