Milcho Dimkov
10/15/2024, 7:14 PMCeligo AI
10/15/2024, 7:15 PMAI generated answer (using internal Slack threads):Based on the conversations, it seems like the issue you're experiencing is related to the unit of measure (UOM) used in your transaction. In NetSuite, when you query the lines and return rate and quantity, it returns those values in base units, not transaction units. In your case, it seems like your item might be ordered in packs of 4, hence the multiplication by 4. To get the quantity and rate as shown on the sales order, you will need to convert to the transaction units using the
conversionrate
from unitstypeuom
.
Here is how you can do it:
1. Divide your quantity by conversionrate
to get the quantity in transaction units.
2. Multiply your rate by conversionrate
to get the rate in transaction units.
You can find the conversionrate
on unitstypeuom
- the id of the units from your transaction is the internalid
referenced on that table. You can find it under "uom" in the Units Type Records Catalog entry.
Please note that you need to adjust your SuiteQL statement to include the conversionrate
from unitstypeuom
.
******
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:15 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.82412076
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.821929276
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.821876526
Celigo AI
10/15/2024, 7:15 PM