{% for doc in Documents %}
{% if doc.invoice %}
{% set view_path = path(download,{'type':'Invoice','id':doc.id }) %}
{{ with_selected_checkbox('documentitem_list', doc.id) }} |
{% if doc.invoice.date %}{{ doc.invoice.date|date('Y-m-d') }}{% endif %} |
{{ doc.invoice.docNo }} |
{{ Account.accountNumber }} |
{{ doc.invoice.description }} |
{{ d2_config('currency_symbol') }} {{ doc.invoice.total|number_format(2, '.', '') }} |
{% for item in doc.invoice.items %}
{{ item.description }} |
{{ item.quantity }} |
{{ d2_config('currency_symbol') }} {{ item.price|number_format(2, '.', '') }} |
{% endfor %}
|
{% for statusItem in attribute(Status, doc.id) %}
{{ statusItem|raw }}
{% endfor %}
|
 }}) |
{% if bundle == 'BillingBundle' %}{% endif %}
|
{% endif %}
{% if doc.creditnote %}
{% set view_path = path(download,{'type':'CreditNote','id':doc.id }) %}
{{ with_selected_checkbox('documentitem_list', doc.id) }} |
{% if doc.creditnote.date %}{{ doc.creditnote.date|date('Y-m-d') }}{% endif %} |
{{ doc.creditnote.docNo }} |
{{ Account.accountNumber }} |
{{ doc.creditnote.description }} |
{{ d2_config('currency_symbol') }} {{ doc.creditnote.total|number_format(2, '.', '') }} |
{% for item in doc.creditnote.items %}
{{ item.description }} |
{{ item.quantity }} |
{{ d2_config('currency_symbol') }} {{ item.price|number_format(2, '.', '') }} |
{% endfor %}
|
N/A |
 }}) |
{% if bundle == 'BillingBundle' %}{% endif %}
|
{% endif %}
{% if doc.debitnote %}
{% set view_path = path(download,{'type':'DebitNote','id':doc.id }) %}
{{ with_selected_checkbox('documentitem_list', doc.id) }} |
{% if doc.debitnote.date %}{{ doc.debitnote.date|date('Y-m-d') }}{% endif %} |
{{ doc.debitnote.docNo }} |
{{ Account.accountNumber }} |
{{ doc.debitnote.description }} |
{{ d2_config('currency_symbol') }} {{ doc.debitnote.total|number_format(2, '.', '') }} |
{% for item in doc.debitnote.items %}
{{ item.description }} |
{{ item.quantity }} |
{{ d2_config('currency_symbol') }} {{ item.price|number_format(2, '.', '') }} |
{% endfor %}
|
N/A |
 }}) |
{% if bundle == 'BillingBundle' %}{% endif %}
|
{% endif %}
{% if doc.quote %}
{% set view_path = path(download,{'type':'Quote','id':doc.id }) %}
{{ with_selected_checkbox('documentitem_list', doc.id) }} |
{% if doc.quote.date %}{{ doc.quote.date|date('Y-m-d') }}{% endif %} |
{{ doc.quote.docNo }} |
{{ Account.accountNumber }} |
{{ doc.quote.description }} |
{{ d2_config('currency_symbol') }} {{ doc.quote.total|number_format(2, '.', '') }} |
{% for item in doc.quote.items %}
{{ item.description }} |
{{ item.quantity }} |
{{ d2_config('currency_symbol') }} {{ item.price|number_format(2, '.', '') }} |
{% endfor %}
|
{% for statusItem in attribute(Status, doc.id) %}
{{ statusItem|raw }}
{% endfor %}
|
 }}) |
{% if bundle == 'BillingBundle' %}{% endif %}
|
{% endif %}
{% endfor %}