{% if request.args.get('email_sent') == '1' %}
Invoice email sent successfully.
{% endif %} {% if request.args.get('email_failed') == '1' %}
Invoice email failed. Check SMTP settings or server log.
{% endif %}
{% if settings.business_logo_url %} {% endif %}

Invoice {{ invoice.invoice_number }}

{{ invoice.status }}
{{ settings.business_name or 'OTB Billing' }}
{{ settings.business_tagline or '' }}
{% if settings.business_address %}{{ settings.business_address }}
{% endif %} {% if settings.business_email %}{{ settings.business_email }}
{% endif %} {% if settings.business_phone %}{{ settings.business_phone }}
{% endif %} {% if settings.business_website %}{{ settings.business_website }}{% endif %}

Bill To

{{ invoice.company_name }}
{% if invoice.contact_name %}{{ invoice.contact_name }}
{% endif %} {% if invoice.email %}{{ invoice.email }}
{% endif %} {% if invoice.phone %}{{ invoice.phone }}
{% endif %} Client Code: {{ invoice.client_code }}

Invoice Details

Invoice #: {{ invoice.invoice_number }}
Issued: {{ invoice.issued_at|localtime }}
Due: {{ invoice.due_at|localtime }}
{% if invoice.paid_at %}Paid: {{ invoice.paid_at|localtime }}
{% endif %} Currency: {{ invoice.currency_code }}
{% if settings.tax_number %}{{ settings.tax_label or 'Tax' }} Number: {{ settings.tax_number }}
{% endif %} {% if settings.business_number %}Business Number: {{ settings.business_number }}{% endif %}
Service Code Service Description Total
{{ invoice.service_code or '-' }} {{ invoice.service_name or '-' }} {{ invoice.notes or '-' }} {{ invoice.total_amount|money(invoice.currency_code) }} {{ invoice.currency_code }}
Subtotal {{ invoice.subtotal_amount|money(invoice.currency_code) }} {{ invoice.currency_code }}
{{ settings.tax_label or 'Tax' }} {{ invoice.tax_amount|money(invoice.currency_code) }} {{ invoice.currency_code }}
Total {{ invoice.total_amount|money(invoice.currency_code) }} {{ invoice.currency_code }}
Paid {{ invoice.amount_paid|money(invoice.currency_code) }} {{ invoice.currency_code }}
Remaining {{ (invoice.total_amount - invoice.amount_paid)|money(invoice.currency_code) }} {{ invoice.currency_code }}
{% if latest_email_log %}
Latest Email Activity

Status: {{ latest_email_log.status }}
Recipient: {{ latest_email_log.recipient_email }}
Subject: {{ latest_email_log.subject }}
Sent At: {{ latest_email_log.sent_at|localtime }}
{% if latest_email_log.error_message %} Error: {{ latest_email_log.error_message }} {% endif %}
{% endif %} {% if invoice_payments %}
Payments Applied

{% for p in invoice_payments %} {% endfor %}
Method Amount Status Received Reference / TXID
{{ p.payment_method_label }} {{ p.payment_amount_display }} {{ p.payment_currency }} {{ p.payment_status }} {{ p.received_at_local }} {% if p.txid %} {{ p.txid }} {% elif p.reference %} {{ p.reference }} {% else %} - {% endif %} {% if p.wallet_address %}
Wallet: {{ p.wallet_address }}{% endif %}
{% endif %} {% if settings.payment_terms %}
Payment Terms

{{ settings.payment_terms }}
{% endif %} {% if settings.invoice_footer %}
Footer

{{ settings.invoice_footer }}
{% endif %}
{% include "footer.html" %}

Payment Instructions

Interac e-Transfer
Send payment to:
payment@outsidethebox.top
Reference: Invoice {{ invoice.invoice_number or ("INV-" ~ invoice.id) }}

Credit Card (Square)


Credit Card (Square)

Pay with Card (Square)

You will be redirected to Square's secure payment page. Please include your invoice number in the payment note.

If you have questions please contact support@outsidethebox.top

{% if (invoice.status or "")|lower != "paid" %} Pay Now (Square) {% endif %}