books icon indicating copy to clipboard operation
books copied to clipboard

💡 [Feature Request] - Number Precision Settings/Configuration

Open Isaac-GC opened this issue 7 months ago • 0 comments

Summary

When using number precision with two decimal places, and having three or more decimal places for the entries, the number automatically rounds up/down. As this is due to the toFixed() method, options should be implemented to allow the user to specify the desired behavior as necessary.

What problem are you trying to solve?

See summary

Basic Example

Configuration settings will be implemented. The settings will look something like:

  • Precision Settings: System Default | User specified
  • [if user specified] Desired behavior: Round nearest | Round up | Round down | Don't round

Drawbacks

May add system complexity to the end user --> should be solved by adding the setting to an "advanced settings" or similar section

Reference Issues

https://github.com/frappe/books/issues/813

Isaac-GC avatar Jan 19 '24 03:01 Isaac-GC