{% extends 'D2BillingBundle::layout.html.twig' %} {% block head_script_extra %} {% endblock head_script_extra %} {% block head_style_extra %} {% endblock head_style_extra %} {% block page_header %}
PDF
{{ with_selected_form('payments_list1', {small: true}) }}

{% for k, v in app.request.query %} {% if k|lower not in ['search', 'page', 'from_date', 'to_date'] %} {% endif %} {% endfor %}
{% endblock page_header %} {% block content %}
Flag Payment Date Account Reference Description Amount Linked Invoices Credit
{% for form in formExisting %}
{{ form_errors(form.form) }}
{{ with_selected_checkbox('payments_list1', form.entity.id) }} {{ form.entity.flag ? 'Flagged' : 'Unflagged' }} {{ form_errors(form.form.date) }}
{{ form_widget(form.form.date,{'id': 'date_'~ form.entity.id }) }}
{{ form.entity.account }} {{ form_errors(form.form.reference) }} {{ form_widget(form.form.reference,{'id': 'reference_'~ form.entity.id }) }} {{ form_errors(form.form.description) }} {{ form_widget(form.form.description,{'id': 'description_'~ form.entity.id }) }} {{ form_errors(form.form.amount) }} {{ form_widget(form.form.amount,{'id': 'amount_'~ form.entity.id }) }}
{% for invoice in form.payment_invoices %} {% if invoice.amount != '0' %}
{{ attribute(form.invoiceEntities,invoice.id).docno }} x
  {% endif %} {% endfor %}
edit
= '0' %} style="color:#808080;" {% endif %} > {{ form_rest(form.form) }}
{% endfor %}
{{ form_errors(newForm.date) }}
{{ form_widget(newForm.date, { 'attr': {'value': formMemory != 0? formMemory.date : '' } }) }}
{{ formMemory != 0? formMemory.accountname : 'None selected' }}edit {{ form_errors(newForm.reference) }} {{ form_widget(newForm.reference,{ 'attr': {'value': formMemory != 0? formMemory.reference : '' } }) }} {{ form_errors(newForm.description) }} {{ form_widget(newForm.description, { 'attr': {'value': formMemory != 0? formMemory.description : '' } }) }} {{ form_errors(newForm.amount) }} {{ form_widget(newForm.amount, { 'attr': {'value': formMemory != 0? formMemory.amount : '' } }) }} {{ form_rest(newForm) }}

 
{% endblock content %}