kimai / kimai

Kimai is a web-based multi-user time-tracking application. Works great for everyone: freelancers, companies, organizations - everyone can track their times, generate reports, create invoices and do so much more. SaaS version available at https://www.kimai.cloud
https://www.kimai.org
GNU Affero General Public License v3.0
3.32k stars 590 forks source link

Monthly target times with running sum per project #5132

Closed Benimautner closed 1 month ago

Benimautner commented 1 month ago

Describe the problem

Kimai doesn't support working times per project at the moment. If I have two employers with different target times per month, I'd like to set that up in either the customer or project view. The monthly budget that exists now is not sufficient since it does not carry any negative/positive balance to the next month.

Describe the solution you'd like

A user could add multiple different employment contracts, with different monthly target times and a start date. Kimai then tells the user what the balance per customer and month is, and increases it every month by the amount that is set in the settings. eg: Contract for 30 hours per month starting in January:

Worked in January: 10 hrs; balance -20hrs Worked in February: 40 hrs; balance -10hrs Worked in March: 40 hrs; balance 0hrs Worked in April: 0 hrs; balance -30hrs etc. This should be customer(/employer)-dependent.

The first part is already kind of supported with the hourly quota feature per project, it just isn't rolling.

Describe alternatives you've considered

I know there is the controlling plugin, but as far as I can see (and have tried on the demo instance) it doesn't support this either. I realise Kimai is more built for contractors/freelancers but this would be a nice feature for employees.

If the time would be per project, this could also be a useful feature for employees with only one contract, since they could see more clearly what the total of their time is. It would already suffice if the monthly budget per project (as it exists now) would be rolling (meaning it remembers and adds the sums for previous months).

Screenshots

No response

Benimautner commented 1 month ago

I've created a fork with that feature here: https://github.com/Benimautner/kimai

Let me know what you think and what is missing for a pull request.

Benimautner commented 1 month ago

I read in a recent pull request that you're not a big fan of new graphs in kimai, so I moved it to a plugin instead: https://github.com/Benimautner/RunningBalanceBundle

I'm open to feedback, but I'll close this issue now. Thanks for the great product that is Kimai! :)

kevinpapst commented 1 month ago

Nice! If you add a few tags to your repository, people can find it more easily. Like that:

Bildschirmfoto 2024-10-25 um 17 07 26
Benimautner commented 1 month ago

I'll do that and add a couple improvements in a couple of weeks!