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

Using the variable ${entry.duration_decimal} and ${invoice.duration_decimal} should always have 2 decimals #1080

Closed
JGrotepass opened this issue Sep 4, 2019 · 4 comments

Comments

@JGrotepass
Copy link

With Change #1037 new variables for invoices were introduced. At least in my case the format of these variables are without 2 decimal characters. That means, that a value of "7.00" will be printed as "7", a value of "7.50" will be printed as "7.5".
This results in a invoice report that does not look very nice.
Is it possible to have both variables formatted with 2 decimal characters?
Thanks
Jochen

Here a screenshot:
image

@gises
Copy link

gises commented Sep 6, 2019

Hello, Kevin,
There are different number formats depending on the country. Is it possible to take this into account as well?
For example, Siwtzerland and Germany are a bit different.
image

Thanks for your effort!

@kevinpapst
Copy link
Member

kevinpapst commented Sep 6, 2019

@gises I think we can add de_CH as locale. Please open a new issues for that, as this is not related to invoices. Can you provide a PR / all the required information mentioned here (in the new issue):
https://www.kimai.org/documentation/translations.html#configure-locale-formats

@kevinpapst
Copy link
Member

You can simply change your invoice template.
Set the format for the column / cells to be a number with two decimals.

@lock
Copy link

lock bot commented Nov 21, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. If you use Kimai on a daily basis, please consider donating to support further development of Kimai.

@lock lock bot locked and limited conversation to collaborators Nov 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

3 participants