{% if entity.invoiceFile.pdfInvoice is not null %} {% if entity.invoiceFile.pdfInvoice.pdfStatement is not null %} {% endif %} {% endif %} {% set quotation = d2_partner_get_waybill_quote( entity.partner.id, entity.id ) %} {% if quotation is not null %} {% endif %} {% set credit_allocation = d2_partner_get_waybill_credit_alloc( entity.partner.id, entity.id ) %} {% if credit_allocation is not null %} {% endif %} {% if entity.waybilldocs| length > 0 %} {% for doc in entity.waybilldocs %} {% endfor %} {% endif %} {% if entity.pods| length > 0 %} {% for pod in entity.pods %} {% endfor %} {% endif %}
TypeDocument
INVOICE {{ entity.invoiceFile.pdfInvoice.origPath }}
STATEMENT {{ entity.invoiceFile.pdfInvoice.pdfStatement.origPath }}
QUOTATION {{ quotation.getDocNo() }}
CREDIT NOTE {{ credit_allocation.getCreditNote.origPath }}
DOCUMENT {{ doc.origPath }}
POD {{ pod.origPath }}