tobybatch / kimai2

Docker containers for the kimai2 web application including docker-compose and kubernetes/helm deployment.
MIT License
183 stars 97 forks source link

[QUESTION] Mapping twig invoice template #482

Closed klangborste closed 1 year ago

klangborste commented 1 year ago

Hello together,

at least for me there is a problem with a custom twig template I used before on docker. I changed to a newer version now with the image "kimai/kimai2:apache-latest" and I got the problem that my changes on the file that is mapped to the docker container "/opt/kimai/templates/invoice/renderer/default.pdf.twig" are not reflect on the system.

Also if I put an empty file with the name "default.pdf.twig" and map in with volume on the container I can still use the invoice default template.

Mapped default.pdf.twig file:

    volumes:
      - $DOCKERDIR/kimai/templates:/opt/kimai/templates/invoice/renderer/
image

Is there a change where I have to map now my custom twig templates?

Best regards

kevinpapst commented 1 year ago

RTM and place the file with a new name in the directory var/invoices/ https://www.kimai.org/documentation/invoices.html#create-your-own-invoice-document

Using a software outside of the documented scope might or might not work, but support canÄt be given in such a case 🤷