I’ve seen this bug a few times over the years. Doe...
# suitecommerce
g
I’ve seen this bug a few times over the years. Doesn’t look like it’s going to get fixed so I’ll report it. There are two ways to get the currency: SC.SESSION.currency and SC.ENVIRONMENT.currentCurrency, if you change currency or change to an account with a different currency then SC.ENVIRONMENT.currentCurrency is often wrong, it is the old currency until you refresh the page.
netsuite 1
s
Funnily enough, I very recently raised an issue ticket related this
Hoping to get prioritised in an upcoming patch
(FTR my issue relates to weirdness around single-site multi-domain where the site will frequently use the site's default currency rather than the one assigned to the domain.)
g
Ha! What are the chances. Yep, ran into this a few years ago. There are only a couple of places in the code where currentCurrency is used so I just changed those to something like currency||currentCurrency