Lorenzo
04/10/2025, 2:51 PMCeligo AI
04/10/2025, 2:51 PMAI generated answer (using internal Slack threads):In SuiteQL, you can't directly get the subtotal field as it's not available. However, you can calculate it by subtracting the shipping amount and tax total from the total amount. Here is an example of how you can do it:
sql
SELECT {amount} - NVL({shippingamount},0) - NVL({taxtotal},0) AS subtotal FROM transactionCeligo AI
04/10/2025, 2:51 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.826337934
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.823354185
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.817642629
Celigo AI
04/10/2025, 2:51 PM