Saizou
Saizou

Reputation: 25

NetSuite : ADV PDF Template toFixed



Does anyone here knows how to have to decimal places in html code?

<#assign unitprice = item.itemunitprice/>
<td border-bottom="0" border-right="1" border-top="1" align="right">${unitprice}</td>

There times that the returning value is whole number {10,000} or with one (1) decimal place {10,000.8}.
Is there a way that the displaying value would become {10,000.00} or {10,000.80}.
Hope you can help me! Thanks in advance!!

Upvotes: 0

Views: 1176

Answers (2)

Nick
Nick

Reputation: 517

I also use ?string.currency. Also, to access price of a sales order I usually use item.amount, not sure if that would change anything.

Upvotes: 0

dcrs
dcrs

Reputation: 304

Try this.

${unitprice?string.currency}

Upvotes: 1

Related Questions