Jump to content
  • 0

Extra decimals being used in the total amount


Question

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

Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
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.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...