Announcement

Collapse
No announcement yet.

How can I remove the decimal part or hide the two decimal places for currency values?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How can I remove the decimal part or hide the two decimal places for currency values?

    How can I remove the decimal part or hide the two decimal places for currency values?

  • #2
    Hi lj4353,

    This is configured in Administration > Currency > Decimal Places.

    Click image for larger version  Name:	image.png Views:	0 Size:	47.3 KB ID:	101867

    In your case, the value in this field will be 0. Note that the amount of €4.767 will be rounded up to €5 when using this option.
    ​​
    Last edited by victor; 01-23-2024, 09:10 AM.

    Comment


    • lj4353
      lj4353 commented
      Editing a comment
      awesome!problem solved

    • lj4353
      lj4353 commented
      Editing a comment
      Oops,Why is there still '00' appearing after the decimal point when printing a PDF?

  • #3
    Oops,Why is there still '00' appearing after the decimal point when printing a PDF?
    Unfortunately, you did not specify that it is a PDF Template.

    You need to include the following code in your PDF Template:
    HTML Code:
    {{amountCurrencySymbol}}{{numberFormat amount_RAW decimals=0 decimalPoint='.' thousandsSeparator=','}}
    And then, the value from field amount (screenshot 1) in the generated PDF document will look like on screenshot 2.

    It is written in detail in the documentation:

    Attached Files

    Comment


    • lj4353
      lj4353 commented
      Editing a comment
      problem solved!thank u
Working...
X