Sergio Ruiz
07/10/2025, 7:12 AMCeligo AI
07/10/2025, 7:12 AMAI generated answer (using internal Slack threads):Based on the conversations, it seems like the issue you're experiencing is related to the way NetSuite handles currency conversion and rounding in multicurrency and multibook environments. When you're using the
getValue
method on a search result, NetSuite might be applying some internal rounding or conversion logic, especially if the field you're trying to get is a currency field. This could explain why you're seeing rounded values in your script, even though the raw search result shows the correct decimal values.
One possible solution could be to use the fxamount
field instead of the amount
field when dealing with multicurrency transactions. The fxamount
field should give you the amount in the original transaction currency, without any conversion or rounding applied.
If you're dealing with tax amounts, you might need to use a formula field to get the correct values in the foreign currency. For example, you could use a formula like taxtotal / exchangerate
to get the tax amount in the original transaction currency.
Remember to always test your changes thoroughly to ensure they're working as expected.
******
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
07/10/2025, 7:13 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.844919682
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.837241948
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.829818189
Celigo AI
07/10/2025, 7:13 AM