Reply
New Member
Posts: 7
Registered: ‎08-11-2018

Currency format

Good morning. How do I make the Colombian currency (COP), show the format $40,000 and no $40?

Ubiquiti Employee
Posts: 3,390
Registered: ‎12-10-2015
Kudos: 1212
Solutions: 263

Re: Currency format

Hi,

You can modify the number in the invoice template: System > Customization > Invoice template:

 

For example: use the totals.totalRaw placeholder with the number_format function with 3 decimals:

{{ totals.totalRaw|number_format(3) }}

 

See the tooltips and docs:

Selection_999(116).png

New Member
Posts: 7
Registered: ‎08-11-2018

Re: Currency format

Thank you very much for answering. The truth would not know how to modify that template. I don't know what line he's on

d.png

Highlighted
Ubiquiti Employee
Posts: 3,390
Registered: ‎12-10-2015
Kudos: 1212
Solutions: 263

Re: Currency format

Hi,

if you want to show invoice total as 40.000 instead of 40

replace this:

{{ totals.total }}

with this:

{{ totals.totalRaw|number_format(3) }}

in the invoice template.

Reply