Discussions
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Join us
Adding a currency symbol to the Totals box
Hi All
I just wanted to share with you a User Event script that I had written to add the currency symbol to the numbers in the Totals box, found on Estimates, Bills, and Sales Orders among others. It assumes that the current locale/currency is prefixed to the value rather than suffixed (as in some situations) but this can be easily changed per implementation.
It doesn't run intentionally on create or copy as the currency could be changed mid transaction and wouldn't reflect the value correctly. And relies on the jQuery engine being available 1.5 seconds after the script tag (from the inline html) is executed, to be able to load the necessary modules, extract the current currency, and inject the correct symbol. It also expects the totalbox to have a CSS class of "totallingtable".