Software + App development company from Germany
Create three custom fields for users using the custom-fields plugin:
If you’re logged in as super-admin you will see an item in the menu called “Vacation view”. In it there is a settings-tab. Here you can select the state for public holidays, the activities that will be used as public holidays and vacations.
The last three inputs are dropdowns with all meta-fields. Select the ones you created earlier.
Important: do the Setup before you run this script! You may want to create a backup before you run this script.
You may have to adjust your path to composer and you may have to write php
in front of bin/console
Does only work if you use the git version
of Kimai 2.
Run the following commands:
cd var/plugins/VacationBundle
bash __create_public_holidays.sh
The install-command will create two roles:
ROLE_VACATION
ROLE_VACATION_ADMIN
Users with none of the roles won’t see the vacation tab in the menu.
If you assign the vacation-role to a user they will see the leave-application tab in the menu.
Super-admins and users with the vacation-admin role have full control over this plugin.
Updating the bundle works the same way as the installation does.
var/plugins/VacationBundle/
(to remove deleted files)bin/console kimai:bundle:vacation:install
Extract the ZIP file and upload the included directory and all files to your Kimai installation to the new directory:
var/plugins/VacationBundle/
The file structure needs to like like this afterwards:
var/plugins/
├── VacationBundle
│ ├── VacationBundle.php
| └ ... more files and directories follow here ...
After uploading the files, Kimai needs to know about the new plugin. It will be found once the cache was re-built. Call these commands from the Kimai directory:
bin/console kimai:reload --env=prod
FTP users: please have a look at this documentation.
If you are running an older version of Kimai (before 1.8) you have to use:
bin/console cache:clear --env=prod
bin/console cache:warmup --env=prod
You might have to set file permissions afterwards:
You have to allow PHP (your webserver process) to write to
var/
and it subdirectories.
Here is an example for Debian/Ubuntu (to be executed inside the Kimai directory):
chown -R :www-data .
chmod -R g+r .
chmod -R g+rw var/
chmod -R g+rw public/avatars/
Test Kimai before executing these commands (they are likely not required in a shared-hosting environment).
You probably need to prefix them with sudo
and
the group might be called different than www-data
.
Run the following command:
bin/console bin/console kimai:bundle:vacation:install
This will create the required database tables and update them to the latest version.
Updating the plugin works exactly like the installation:
var/plugins/VacationBundle/
bin/console bin/console kimai:bundle:vacation:install
Controlling plugin (German law, break time check, overtime)
New
|
plugin
|
99€ | |
Empty description checker plugin |
plugin
|
free | |
HasWorked plugin (notify users if they haven't entered times)
New
|
plugin
|
29€ | |
Kimai2 Android app for offline tracking |
app
|
1,90€ | |
Kimai2 iOS app for offline tracking |
app
|
1,92€ | |
Period insert plugin |
plugin
|
29€ | |
RecordBook plugin (Berichtsheft für Azubis) |
plugin
|
29€ | |
Vacation plugin (vacation + official & local holidays)
New
|
plugin
|
149€ |