-
-
Notifications
You must be signed in to change notification settings - Fork 597
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
Rounding rules #128
Rounding rules #128
Conversation
added documentation
added CONTRIBUTION guidelines fixed license year
oh, this pr is quite big. It looks like multiple things are done and not just one, especially about the documentation. Please explain how to use this feature and how it can be manually tested. Please also write some specs how this feature should work! |
Sure! The are some "mixins" to the main topic of this pull request, like general improvement of the documentation and code sniffer fixes - these can be ignored feature wise, but you could still have a look, especially at the documentation. Is the current state helpful or do you miss more details and such... The main part of this PR are two features: rounding of timesheet records and the option to configure different rates multipliers for different weekdays (this was asked in Kimai v1 from time to time - people who wanted to charge more on weekends). The later feature is disabled by default, but a configuration example is included in kimai.yaml. These "calculation services" can also dynamically be added during runtime by bundles, using the service container and the tag For now time rounding is a global setting, as I don't think that companies want their employees to be able to configure their own rounding rules. And freelancer can configure it in the yaml file. Also adding dynamic administration configs through the web is a major feature which needs to be tackled at a later date... Please have a look at: All you need to do is to pull this branch and adjust the configuration as explained in the docu. Edit timesheet records which were stopped or stop a running entry. The configured rounding rules for times and rate should be applied. |
Great. this is much easier to understand than just reading code ;) |
Yeah, I thought about the nightshift as well .. .and then comes the feiertags-rules ;-) Real rules could fast become quite complicated and at least the shift rules might be user-specific. My conclusion is: I would not add it as a feature for the first test version, but either later or as premium feature. |
I have never worked in a company with night shifts, therefore I don't know how they are calculated so I'm not even able to write a spec. |
Let me know if you have further feedback, otherwise I would merge it |
Ready for merge |
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. |
Fixes #112