kimai / Paid-plugins

Support for paid Kimai plugins: Discussions and feature requests
https://www.kimai.org/store/
11 stars 1 forks source link

Plugin wish: Breaktime #57

Open NetBLOKS opened 1 year ago

NetBLOKS commented 1 year ago

We need a feature for breaktimes. Best thing would be to have a "Pause" Button on top, to just pause timetracking and then press continue, just like a Musicplayer, and Kimai would calculate the time minus break and show breaktime length. I´ve found the deduction time plugin and wanted to gibe it a try, but get this error when typing

bin/console kimai:reload --env=prod

Reloading configurations ...
============================

 [OK] All 39 YAML files contain valid syntax.                                                                           

 [OK] All 530 XLIFF files contain valid syntax.                                                                         

 Rebuilding your cache, please be patient ...

 // Clearing the cache for the prod environment with debug false                                                        

12:21:57 CRITICAL  [php] Uncaught Error: syntax error, unexpected '->' (T_OBJECT_OPERATOR) ["exception" => ParseError { …}]

In DeductionTimeCalculator.php line 25:

  syntax error, unexpected '->' (T_OBJECT_OPERATOR)  

kimai:reload [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command>
kevinpapst commented 1 year ago

Please install the correct version. Only 1.0 is compatible with PHP < 8.1 and Kimai 1.x.

This repository is for paid plugins only. Please post here: https://github.com/Keleo/DeductionTimeBundle/issues

NetBLOKS commented 1 year ago

Thanks, my bad, I used the main.zip as written in the Readme.

But after testing it, the Plugin doesnt fit our needs, so I reformulate this as a feature request for a paid plugin:

We do not use Kimai for invoice creation, so the automatic calculation of deduction time is not sufficient.

We´d like to have a pause button (maybe in addition to the stop button at the top) to pause activities. When the activity is stopped, Kimai should calculate the time minus pause and still show start and end times instead of separate activities like Check-In and Check-Out or deduction time.

Best regards!

kevinpapst commented 1 year ago

Understand. A pause is the time between two time entries. How many pause do you allow? One? Two? How do you control, that someone really had the correct amount of time in one dedicated pause (as forced by the Arbeitsschutzgesetz) if you merge the times together? There are multiple reasons why a simple pause button is not the correct approach in my opinion. What is missing is another view on a day. T hat is on my roadmap and it will help to reduce the wish for a "break-time".

NetBLOKS commented 1 year ago

We need the pause system not for worktime-tracking, but for "normal" project timetracking. I.e. when we are working for customers. It could be two additional time fields at the top (From, to, Duration, Pause, Effective-time) which are accumulated (Pause) and deducted (Effective-Time) with every Pause pressed and stopped and could be edited like duration.

For worktime, the momentary solution using check-in check-out is fine, for us at least.

Holiday and illnesstracking/ planing would be awesome of course, but that is for another feature request ;-)

Edit: The time, when the pause is starting and stopping is irrelevant for our purposes, so the above mentioned fields would suffice. If the fields are needed for work-time tracking, maybe a "sub"time like in the Task-view plugin, where every tracked time is added at the bottom of then task would be an elegant solution?

kevinpapst commented 1 year ago

I'll think about a plugin solution for that feature.

vinc32 commented 1 year ago

+1 :) wir brauchen das auch

Mit freundlichen Grüßen

Maximilian Eberhardt

E-Mail: @.*** Tel.: +49 176 70 27 40 76<tel:+49%20176%2070%2027%2040%2076>

Am 12.01.2023 um 15:01 schrieb Kevin Papst @.***>:



I'll think about a plugin solution for that feature.

— Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fkevinpapst%2Fkimai-plugins%2Fissues%2F57%23issuecomment-1380397817&data=05%7C01%7C%7C7ee83fe709044e59f7f208daf4a56eb7%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638091288607192284%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=HDv2rFu5nXXy8YtNe84lEK4CnyWriYgwlUopl7cbLuY%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAA5N74GH4YLXUTABP7NXSWTWSAFBVANCNFSM6AAAAAATZEQO4Y&data=05%7C01%7C%7C7ee83fe709044e59f7f208daf4a56eb7%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638091288607192284%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=d0zxIrpSabylSbNferijyiayCZ84Hb6%2BYweXJHrVGWI%3D&reserved=0. You are receiving this because you are subscribed to this thread.Message ID: @.***>

HeinzWuert commented 1 year ago

What about #3734 "negative duration" and an activity "Pause"

Sim0nW0lf commented 1 year ago

I don't really get the "pause button" idea... Basically we have that already? You can just stop your time and start it again later? (the restart button makes that very easy) In combination with the kiosk plugin it would be really confusing because if someone logs out there for a break it would not be recognized as breaktime. A break time plugin would be interesting anyways. I have seen it work in another timetracking system (timerecording.com) like this:

NO time entries are added to the server, instead it checks for your break time rules and deducts time automatically if the rules are not met. Timerecording was a little bit annoying to use because you had to create a new user every time the working times of that user or the break time rules changed because every change affects all previous months too. In my oppinion closing months like the controlling plugin does is a better solution. The controlling plugin is nice, but it's far from perfect and in my oppinion could use a lot more integration & bug fixing. A native overtime & breaktime check plugin would be really good I think because it should be integrated into one plugin so that closing months can be done in one plugin only.

What do you think?