{% extends 'base.html.twig' %} {% block title %}Invoice #{{ invoice.displayInvoiceNumber }}{% endblock %} {% block stylesheets %} {% endblock %} {% block body %}
{{ invoice.status.label }}
{% if company %}

{{ company.name }},

{{ company.formattedAddress }}.

{{ company.email }}

{{ company.phone }}

{% endif %}
{% if company and company.logoPath %} Logo {% else %} Logo {% endif %}
{{ invoice.type.label|upper }}

Bill To

{{ invoice.customer.name }}

{{ invoice.customer.formattedAddress }}

{% if invoice.customer.contactPerson %}

Att: {{ invoice.customer.contactPerson }}{% if invoice.customer.contactEmail %}, {{ invoice.customer.contactEmail }}{% endif %}

{% endif %}
Invoice #{{ invoice.displayInvoiceNumber }}
Invoice Date{{ invoice.invoiceDate|date('d/m/Y') }}
Due Date{{ invoice.dueDate|date('d/m/Y') }}
{% for item in invoice.items %} {% endfor %} {% if invoice.taxRate > 0 %} {% endif %} {% if invoice.isForeignCurrency and invoice.exchangeRate %} {% endif %}
Qty Description Unit Price Amount
{{ item.quantity }} {% if item.product %} {{ item.product.name }} {% if item.description %}
{{ item.description }}{% endif %} {% else %} {{ item.description }} {% endif %}
{{ item.unitPrice|money }} {{ item.amount|money }}
Subtotal {{ invoice.subtotal|money }}
Tax ({{ invoice.taxRate }}%) {{ invoice.taxAmount|money }}
TOTAL {{ invoice.currency.symbol }}{{ invoice.total|money }}
TZS Equivalent {{ invoice.formattedTotalInTzs }} (1 {{ invoice.currency.code }} = {{ invoice.exchangeRate|money }} TZS)
{% if company %}

Payment Information

Bank: {{ company.bankName }} Account Name: {{ company.bankAccountName }} Account #: {{ company.bankAccountNumber }}
{% endif %} {% if invoice.invoiceTerms %}

Terms & Conditions

{{ invoice.invoiceTerms|raw }}
{% endif %}
Invoice created at: {{ invoice.createdAt|date("d/m/Y H:i:s") }}
{% endblock %}