{% extends '@Commercial/billing/layout.html.twig' %} {% block commercial_title %}{{ title }}{% endblock %} {% block billing_heading %}{% endblock %} {% block billing_toolbar %}{% endblock %} {% block billing_content %} {% set historical_mode = historical_mode|default(false) %} {% set project_required = require_invoice_project|default(false) and input.type in ['invoice', 'deposit_invoice', 'balance_invoice'] and not historical_mode %} {% set type_label = type_labels[input.type]|default(input.type) %} {% set form_lines = input.lines|length ? input.lines : [{position: 1, lineType: 'line', label: '', description: '', quantity: '1.000', unitPriceHt: '0.00', discountRate: '0.00', vatRate: '20.00', sourceType: 'free_line'}] %} {% set back_url = historical_mode ? path('billing_historical_invoice_index') : (document ? path('billing_document_show', {idtoken: document.idtoken}) : (input.type == 'quote' ? path('billing_quote_index') : path('billing_invoice_index'))) %}
{% endblock %}