Milcho Dimkov
10/15/2024, 7:23 PMCeligo AI
10/15/2024, 7:23 PMAI generated answer (using internal Slack threads):It seems like you're experiencing an issue with the quantity being multiplied by the conversion rate. This is because the SuiteQL query is returning the quantity in base units, not transaction units. You can adjust your SuiteQL query to account for the conversion rate and get the correct quantity. Here is the adjusted SuiteQL statement:
sql
SELECT
transactionline.*,
transactionline.quantity / uom.conversionrate AS adjusted_quantity
FROM
transactionline
JOIN
unitstypeuom AS uom ON transactionline.unit = uom.internalid
WHERE
transactionline.transaction = 123
In this query, we're joining the transactionline
table with the unitstypeuom
table on the unit
field. This allows us to access the conversionrate
for each transaction line. We then divide the quantity by the conversion rate to get the correct quantity in transaction units.
Please note that you might need to adjust the table and field names based on your actual database schema.
******
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/15/2024, 7:23 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.844267964
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.825370491
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.825145483
Celigo AI
10/15/2024, 7:23 PM