{% import 'AppBundle:Documents:v2\\Import\\global.html.twig' as globalF %}
{% import 'AppBundle:Documents:v2\\Import\\group.html.twig' as groupF %}
{% set hasRental = isRental is defined and isRental == true %}
{% set hasPayments = sellingData.payments is not empty and sellingData.payments|length > 0 %}
{% set nbPayments = sellingData.payments|length %}
{% set iban = groupF.getIban(groupData, {}) %}
{% set swift = groupF.getSwift(groupData, {}) %}
{% set domiciliation = groupF.getDomiciliation(groupData, {}) %}
{% set hasGroupBankInfo = iban|trim is not empty or swift|trim is not empty or domiciliation|trim is not empty %}
{% set invoiceFundingColumn = 35 %}
{% if nbPayments > 1 or hasDelivery == true %}
{% set invoiceFundingColumn = 20 %}
{% endif %}
{% set groupColumnWidth = 35 %}
{% set deliveryColumnWidth = 25 %}
{% set paymentColumnWidth = nbPayments > 1 ? 40 : 30 %}
{% set tableWidth = '' %}
{% if isPackaged is defined and true == isPackaged %}
{% set groupColumnWidth = nbPayments > 1 ? 25 : groupColumnWidth %}
{% set deliveryColumnWidth = nbPayments > 1 ? 24 : 35 %}
{% set paymentColumnWidth = nbPayments > 1 ? 50 : 25 %}
{% set tableWidth = 'w-100' %}
{% endif %}
{% if hasRental == true or hasDelivery == true or hasGroupBankInfo == true or hasPayments == true %}
{% include 'AppBundle:Documents:v2\\Include\\Global\\title_content.html.twig' with {
'title' : block_title|trans({}, 'DocumentTrans')
} %}
{% set emptyColumnWidth = (100 - groupColumnWidth) %}
{% if hasDelivery == true %}
{% set emptyColumnWidth = (emptyColumnWidth - deliveryColumnWidth) %}
{% endif %}
{% if hasPayments == true %}
{% set emptyColumnWidth = (emptyColumnWidth - paymentColumnWidth) %}
{% endif %}
{% if invoiceFunding.choice != "enumFundingChoice.no" %}
{% set emptyColumnWidth = (emptyColumnWidth - invoiceFundingColumn) %}
{% endif %}
{% if emptyColumnWidth > 50 %}
{% set emptyColumnWidth = 40 %}
{% endif %}
{% if emptyColumnWidth > 0 %}