megaphone
Update your Profile with your Support type to get your Support Type badge.
Nominate Your Peers for NetSuite Support Community's Choice of the Quarter! Submit your nomination today.
Expand your NetSuite knowledge by joining our Ask A Guru Live sessions. RSVP on this event now.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here!
What Topic Should We Cover Next? Your idea could be our next feature—drop your suggestion now!
No Limits. Just possibilities. Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Discover what's next at SuiteConnect Tour 2026.
Try Intelligent Payment Automation – Fee Free For Your First Month For more information, visit this thread.

Discussions

Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!

Unable to convert String to a Number

edited Mar 19, 2021 2:20PM in Ask A Guru 9 comments

Hello,

I have created a custom statement print, but I am having difficulty converting the line.charge string to a number for the values to be summed?

I can successfully remove the “£” and “,” characters i.e. £1,532.64 becomes 1532.64, but the ?number produces an error.

Without the ?number the string concatenates the values as it loops through the list.


<#if statement.lines?has_content>

<#assign linestblwsortcol = [] /> <!-- declare container for lines table with sort column -->

<#assign bal = 0 />

<#list statement.lines as tbl>

<#assign linestblwsortcol = linestblwsortcol + [tbl + {"sortcolumn":"${tbl.datecol?string('yyyy/MM/dd/')}${tbl.description}"}] /> <!-- add sort column to the lines table with value of joined Date and Description values-->

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!

Leaderboard

Community Whiz

Quarter 1 (Jan-Mar 2026)

This Week's Leaders

This Month's Leaders

All Time Leaders