Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the option to display whole values instead of showing unnecessary fractions in decimals #152

Open
chrisK00 opened this issue Nov 1, 2023 · 0 comments
Labels
feature patch Increase the value of patch for the next release

Comments

@chrisK00
Copy link
Contributor

chrisK00 commented Nov 1, 2023

Background

This is how decimal values are presented in subtrack right now:
$ 10.50
$ 10.00
$ 2.00

Most of the time we are interested in only the whole number and in some countries such as Sweden prices are commonly only in whole numbers. We should make it optional wether the fractional part in the decimal should be displayed.

If the option is on the above costs would be displayed as
$ 10
$ 10
$ 2

Tips

  • The feature Import and Export Subscriptions #137 has issues regarding creating the settings page and adding options. Use as reference
  • When fractions are displayed it would be nice if the fractional part (including the dot ".") would have a smaller font size so that it is less noticeable, same as how amazon does it.
    Discord_6S4dInmeH0

Acceptance Criteria

  • The option is added to the settings page as a toggle named "Hide Fractions". Default value is off so that fractions are displayed by default
  • Index, Monthly, Details, and Upsert page are updated according to wether the setting is on
@chrisK00 chrisK00 added feature patch Increase the value of patch for the next release labels Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature patch Increase the value of patch for the next release
Projects
None yet
Development

No branches or pull requests

1 participant