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