Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
How to get consolidated exchange rate for given date?
I have an invoice in our Canadian subsidiary that I am trying to get the tax amount for via SuiteScript.
The TAXTOTAL field shows the dollar amount in our base currency - not the currency of the transaction. In talking to NetSuite support there is no foreign version of this field (like we have FXAMOUNT for TOTAL).
So, I've determined that I need to determine the CONSOLIDATED EXCHANGE RATE between the two subsidiaries for the date of the invoice. And then multiply the base currency version of the TAXTOTAL by this rate to get the amount shown on screen.
The code below is for getting these consolidated rates for a given period, but how do I 1) determine the period for a given date and 2) find the internal ID of that period?