{% include INIT_VARIABLES %}
{% include FOOTER f 30 50 %}
{% import 'AppBundle:Documents:v2\\Import\\invoice.html.twig' as invoiceF %}
{{ invoiceF.getTitle(object, {'documentType': documentType}) }}
|
{% if object.invoice is defined and object.invoice is not empty %}
{% if without_reference is defined and without_reference == false %}
{{ invoiceF.getSubTitle(object, {}) }}
{% endif %}
|
{% endif %}
|
{{ 'date'|trans({}, 'DocumentTrans' )}} :
{% if invoiceDate is not empty %}
{{ invoiceDate|date('d/m/Y') }}
{% endif %}
|
{{ 'contact.customer.account'|trans({}, 'DocumentTrans' )}} : {{ customerAccount }}
|
{% set hasTableParentTitle = false %}
{% include TEMPLATE_SELLING_TABLE %}
|
{% if invoiceComment is not empty %}
{{ 'comments'|trans({}, 'DocumentTrans' )}} :
{{ invoiceComment | truncate(600, true, '') | nl2br }}
|
{% endif %}
{{ 'tax.header.table'|trans({}, 'DocumentTrans' )}}
|
{{ 'tax.header.base'|trans({}, 'DocumentTrans' )}}
|
{{ 'tax.header.amount'|trans({}, 'DocumentTrans' )}}
|
{% set taxTabList = sellingTaxData.groupByTaxName %}
{% set sumTax = 0 %}
{% for key, taxTab in taxTabList %}
{% set sumTax = sumTax + taxTab.taxValue %}
{{ key|trans({}, 'DocumentTrans') }}
|
{{ taxTab.priceWithoutTax|number_format(2, ',', ' ') }} {{ currencySymbol }}
|
{{ taxTab.taxValue|number_format(2, ',', ' ') }} {{ currencySymbol }}
|
{% endfor %}
{{ 'tax.total'|trans({}, 'DocumentTrans' )}}
|
{{ sumTax|number_format(2, ',', ' ') }} {{ currencySymbol }}
|
|
{% if invoicePayments is not empty %}
{{ 'payment.title'|trans({}, 'DocumentTrans' ) }}
|
{% if invoicePayments is not empty %}
{{ 'payment.type'|trans({}, 'DocumentTrans' ) }}
|
{{ 'payment.amount'|trans({}, 'DocumentTrans' ) }}
|
{{ 'payment.received'|trans({}, 'DocumentTrans' ) }}
|
{{ 'payment.deadline'|trans({}, 'DocumentTrans' ) }}
|
{{ 'payment.bill'|trans({}, 'DocumentTrans' ) }}
|
{% endif %}
{% set totalPayment = 0 %}
{% for payment in invoicePayments %}
{% set totalPayment = totalPayment + payment.amount %}
{% if payment.mode is not empty %}
{{ payment.mode }}
{% endif %}
{% if payment.checkNumber is not empty %}
{{ payment.bank }} {{ 'payment.number'|trans({}, 'DocumentTrans' ) }} {{ payment.checkNumber }}
{% endif %}
|
{% if payment.amount is not empty %}
{{ payment.amount|number_format(2, ',', ' ') }} {{ currencySymbol }}
{% endif %}
|
{% if payment.receiveDate is not empty %}
{{ payment.receiveDate|date("d/m/Y") }}
{% endif %}
|
{% if payment.termDate is not empty %}
{{ payment.termDate|date("d/m/Y") }}
{% endif %}
|
{% if payment.condition is not empty %}
{{ payment.condition }}
{% endif %}
|
{% endfor %}
|
{{ 'payment.total'|trans({}, 'DocumentTrans' ) }}
|
{{ totalPayment|number_format(2, ',', ' ') }} {{ currencySymbol }}
|
|
{{ 'payment.left_to_pay'|trans({}, 'DocumentTrans' ) }}
|
{% if invoiceBalance is not empty %}
{{ invoiceBalance|number_format(2, ',', ' ') }} {{ currencySymbol }}
{% endif %}
|
|
{% endif %}