{% extends 'MyAcPayeesBundle:Default:index.html.twig' %} {% block title %} My Current Bills{% endblock %} {% block breadcrumb %}Home>> MyBills>> Current Bills>>{% endblock %} {% block bodytitle %} Current Bills {% endblock %} {% block body %}
{% if countPayeeInvoice==0 %} No Bills to Pay!!! {% else %}
{# #} {% set index=paginator.offset %} {% for x in index..(paginator.offset+paginator.limit-1) %} {# {% for child in form.ids %} {% set index=(child.vars.label - 1) %}#} {# the checkbox value is also the array key for the entity #} {% if invoices[index] is defined %} {% set index=index+1 %}{% endif %} {% endfor %}
Check To
Include
Invoice
No.
Creditor Invoice
Description
Created Date Due Date Inv.
Amount
Pay This Bill Status View / Download
Invoice
{% if invoices[index].invoice.company.hasapprovalsystem!=1 or (invoices[index].invoice.company.hasapprovalsystem==1 and invoices[index].approved==1) %} {#{{ form_widget(child, {'id': 'check'~index }) }}#} {% endif %} {{invoices[index].invoiceNo}} {{invoices[index].invoice.company.cmptradename}}
Ph: {{invoices[index].invoice.company.contphone}}
{{invoices[index].invoice.invoicedesc}} {% if invoices[index].students is defined and invoices[index].students|length >0 %} ({{invoices[index].students.sfirstname}} {{invoices[index].students.slastname}} )
{% endif %}
{% if invoices[index].isreccuring==1 %} {{invoices[index].createdon | date("d-m-Y") }} {% else %} {{invoices[index].invoice.createdon | date("d-m-Y") }} {% endif %} {% if invoices[index].isreccuring==1 %} {{invoices[index].duedate | date("d-m-Y") }} {% else %} {{invoices[index].invoice.duedate | date("d-m-Y") }} {% endif %} ${{invoices[index].invoice.invoicetotalamt|number_format(2)}} {% if invoices[index].invoice.company.hasapprovalsystem==1 and invoices[index].approved!=1 %} {% else%} {# #} {# #} {% if invoices[index].hasautopay==1 %} Autopay {% else %} {# #} {% endif %} {% endif %} {% if invoices[index].activestatus==1 %} New {% elseif invoices[index].activestatus==2 %}Processing {% elseif invoices[index].activestatus==3 %}Paid {% elseif invoices[index].activestatus==0 %} OverDue {% elseif invoices[index].activestatus==-1 %} Dishonoured {% endif %} View Invoice
Download Invoice
{% if paginator.currentpage != 1 %} {% endif %} {% for index in 1..paginator.numpages%} {% if paginator.range.0 > 2 and index == paginator.range.0 %} ... {% endif %} {% if(index==1 or index==paginator.numpages or index in paginator.range) %} {% if index==paginator.currentpage %} {{index}} {% else %} {{index}} {% endif %} {% endif %} {% if paginator.range[paginator.midrange -1] < paginator.numpages -1 and index == paginator.range[paginator.midrange-1] %} ... {% endif %} {% endfor %} {% if paginator.currentpage < paginator.numpages %} {% endif %}
{# {{ form_widget(form.choices, {'value': choices}) }}#} {##} {# #} {% endif %} {% endblock %} {% block javascripts %} {{parent()}} {% endblock %}