Process all time records within given scope into invoice with items grouped by Clients + Also the CSV Timesheet is attached to Invoice.
Commandline tool i used to issue AbraFlexi invoice using Kimai API
Example environment or .env file contents:
KIMAI_HOST=your.server.com
KIMAI_USER=user.login
KIMAI_TOKEN=xxxxxx
KIMAI_SCOPE=last_month
ABRAFLEXI_URL="https://demo.abraflexi.eu:5434"
ABRAFLEXI_LOGIN="winstrom"
ABRAFLEXI_PASSWORD="winstrom"
ABRAFLEXI_COMPANY="demo"
ABRAFLEXI_CUSTOMER="DEMO"
ABRAFLEXI_TYP_FAKTURY="FAKTURA"
ABRAFLEXI_CENIK="WORK"
ABRAFLEXI_SEND=True
[email protected] - into "poznam" field (abraflexi-mailer can handle it)
INVOICE_DOWNLOAD=true - into "reports" directory
REPORTS_DIR="/tmp/"
Scope can be: last_month or previous_month, two_months_ago, last_two_months, current_month* Or month name: January February March April May June July August September October November December
run src/kimai2abraflexi.php
or
/usr/bin/kimai2abraflexi
- generate invoices
/usr/bin/kimai2xls
- generate reports only
when installed from debian package
sudo apt install lsb-release wget apt-transport-https bzip2
wget -qO- https://repo.vitexsoftware.com/keyring.gpg | sudo tee /etc/apt/trusted.gpg.d/vitexsoftware.gpg
echo "deb [signed-by=/etc/apt/trusted.gpg.d/vitexsoftware.gpg] https://repo.vitexsoftware.com $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/vitexsoftware.list
sudo apt update
sudo apt install abraflexi-kimai-importer
See also: