Skip to main content

How to adjust the decimal places of a percentage field?

Learn how to adjust the decimal places of a percentage field.

Written by Diego Alves do Nascimento

Percentage type fields can accept up to 9 characters and support more than one decimal place.

However, by default, the system displays only one decimal place. So, for example, if a discount is entered as 11.25%, after the quote is generated the value will be rounded to 11.3%.

How to adjust?

  • Go to Administration > Document Templates;

  • Select the desired document template;

  • Click Source code, in the upper right corner;

  • Use Ctrl + F to search for the name of the percentage field in the code.

The field tag starts at <field> and ends at </field>. Inside this tag, locate the following code:

format="n1"

This number defines the number of decimal places displayed after the decimal point.

Examples:

  • n0 -> 11.25 becomes 11

  • n1 -> 11.25 becomes 11.3

  • n2 -> 11.25 becomes 11.25

  • n3 -> 11.25 becomes 11.250

Change the number according to the number of decimal places you want to display. Then click Ok and then Save.

To apply the change to quotes already created, access the quote and click Edit > Update data and template.


Did this article help you? Leave your feedback below so we can keep improving our knowledge base. 😊

Still have questions? Don't hesitate to contact Support via the platform chat or by email at suporte@ploomes.com.

Did this answer your question?