{% extends 'admin/layout.html.twig' %} {% block title %}Invoice #{{ invoice.displayInvoiceNumber }} - KitscoApp{% endblock %} {% block page_title %}Invoice #{{ invoice.displayInvoiceNumber }}{% endblock %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block content %}
PDF Download {% if invoice.accessToken %} {% endif %}
{% if invoice.status.value == 'draft' %} Edit
{% endif %} {% if invoice.status.value in ['sent', 'viewed', 'overdue'] %} {% endif %} Duplicate {# Email Actions Dropdown #} {% if invoice.customer and invoice.customer.contactEmail %}
{% if invoice.status.value in ['sent', 'viewed', 'overdue', 'draft'] %}
{% endif %} {% if invoice.status.value in ['sent', 'viewed', 'overdue'] and not invoice.isPaid %}
{% endif %} {% if invoice.status.value == 'overdue' %}
{% endif %} {% if invoice.payments|length > 0 %}
Payment Confirmations
{% for payment in invoice.payments %}
{% endfor %} {% endif %}
{% else %} No Email {% endif %} {% if invoice.canBeRevised %} Create Revision {% endif %} {% if is_granted('ROLE_ADMIN') and invoice.status.value != 'cancelled' %}
{% endif %} {{ invoice.status.label }}
{% if company %}

{{ company.name }},

{{ company.formattedAddress }}.

{{ company.email }}

{{ company.phone }}

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

Bill To {% if invoice.hasBillingOverrides %} {% endif %}

{{ invoice.effectiveBillingName }}

{{ invoice.effectiveFormattedAddress }}

{% if invoice.effectiveBillingContactPerson %}

Att: {{ invoice.effectiveBillingContactPerson }}{% if invoice.effectiveBillingContactEmail %}, {{ invoice.effectiveBillingContactEmail }}{% endif %}

{% endif %}
Invoice #{{ invoice.displayInvoiceNumber }}
Invoice Date{{ invoice.invoiceDate|date('d/m/Y') }}
Due Date{{ invoice.dueDate|date('d/m/Y') }}
{% set originalInvoice = invoice.originalInvoice %} {% if originalInvoice.revisions|length > 0 or invoice.isRevision %}

Revision History

{{ originalInvoice.invoiceNumber }} {% for rev in originalInvoice.revisions %} {{ rev.displayInvoiceNumber }} {% endfor %}
{% endif %} {% 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 %}
{% endblock %} {% block javascripts %} {{ parent() }} {% if invoice.accessToken %} {% endif %} {% endblock %}