Skip to content

Latest commit

 

History

History
 
 

din5008-invoice

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

DIN 5008 invoice template

This template tries to match the requirements of the DIN 5008 norm.

Screenshot of template

Customization

You can customize this template by overriding it to change variables and overriding blocks.

Variables

In your template you can change variables to adjust this template to your needs. Below is a list of possible variables with a brief explanation of their function.

Example for overriding a variable:

{% extends '@invoice/din5008-invoice.pdf.twig' %}

{% set accentColor = '#483D8B' %}

logoUrl

Sets url of the header logo.

accentColor

Sets color for header background, table header font color and the color of the footer separator line.

fontFamily

Sets the used font family of the invoice. Please make sure that the font is available for mpdf. Refer to the officail Kimai documentation for more information.

introductionText

Sets an introduction text that is displayed before the invoice positions.

invoiceSenderAddress

Sets the sender address that is displayed in the address window.

showFoldHoleMarks

Set if fold and hole marks are printed

Blocks

If you need more advanced customization you can override the used blocks.

Example:

{% extends '@invoice/din5008-invoice.pdf.twig' %}

{% block invoice_styles %}
    {{ parent() }}
    <style type="text/css">
        .header {
            border-bottom: 5px solid #fff;
        }
    </style>
{% endblock %}