Jump to content
  • 0

Extra decimals being used in the total amount


Question

Posted

Hi,

I'm having an issue when using the tag {invoice.due} in the Email templates. 2 extra decimals appear on the total of the amount due. I've attached an image to better understand what I'm talking about.

image.png.985cb866fa7ae82b996120e6828322e3.png

The amount due should only be "620.00" instead of "620.0000". I've tried modifying some settings in the currency but it didn't solve the issue. Please let me know what I can do to fix this.

Thank you,

Gabriel

1 answer to this question

Recommended Posts

  • 0
Posted
22 hours ago, Gabriel Gutierrez said:

Hi,

I'm having an issue when using the tag {invoice.due} in the Email templates. 2 extra decimals appear on the total of the amount due. I've attached an image to better understand what I'm talking about.

image.png.985cb866fa7ae82b996120e6828322e3.png

The amount due should only be "620.00" instead of "620.0000". I've tried modifying some settings in the currency but it didn't solve the issue. Please let me know what I can do to fix this.

Thank you,

Gabriel

Per https://docs.blesta.com/display/user/Customizing+Emails you can add a filter. Use numberformat, e.g.

{"12345.6789" | numberformat 2, ".", ","}

Just replace "12345.6789" with the tag that represents the amount.

It might be possible with a feature request that we could update the email tags to observe the currency precision as well, so the above wouldn't be necessary.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...