{# The invoice "paper". Inline styles so it looks the same in the panel, on the customer's page and printed. #} {% set muted = "color:#6b7280" %} {% set party = vendor or customer %}
{% if business.logo_url %}{% endif %}
{{ business.name }}
{% if business.address %}
{{ business.address }}
{% endif %} {% if business.tax_id %}
GSTIN: {{ business.tax_id }}
{% endif %} {% if business.email %}
{{ business.email }}
{% endif %} {% if business.phone %}
{{ business.phone }}
{% endif %}
{{ __(title) }}
{{ invoice.number }}
{{ __('Date') }}: {{ invoice.issue_date.strftime('%d %b %Y') if invoice.issue_date else '' }}
{% if invoice.due_date %}
{{ __('Valid until') if invoice.kind == 'quote' else __('Due') }}: {{ invoice.due_date.strftime('%d %b %Y') }}
{% endif %} {% if invoice.reference %}
{{ __('Ref') }}: {{ invoice.reference }}
{% endif %} {% if against %}
{{ __('For') }}: {{ against }}
{% endif %} {% if place_of_supply %}
{{ __('Place of supply') }}: {{ place_of_supply }}
{% endif %}
{{ __(status_label) }}
{{ __('From vendor') if vendor else __('Bill to') }}
{% if party %}
{{ party.name }}
{% if party.company %}
{{ party.company }}
{% endif %} {% if party.address %}
{{ party.address }}
{% endif %} {% if party.tax_id %}
GSTIN: {{ party.tax_id }}
{% endif %} {% if party.email %}
{{ party.email }}
{% endif %} {% else %}
—
{% endif %}
{% if show_hsn %}{% endif %} {% if show_discount %}{% endif %} {% for item in items %} {% if show_hsn %}{% endif %} {% if show_discount %}{% endif %} {% endfor %}
{{ __('Item') }}{{ __('HSN/SAC') }}{{ __('Qty') }} {{ __('Price') }}{{ __('Disc') }}{{ __('GST') }} {{ __('Amount') }}
{{ item.description }}{{ item.hsn }}{{ item.quantity }} {{ item.unit }} {{ item.price }}{{ item.discount }}{{ item.tax }} {{ item.amount }}
{% if discount %}{% endif %} {% for name, amount in taxes %}{% endfor %} {% if round_off %}{% endif %} {% if paid %}{% endif %}
{{ __('Subtotal') }}{{ subtotal }}
{{ __('Discount') }}-{{ discount }}
{{ __('Taxable value') }}{{ taxable }}
{{ name }}{{ amount }}
{{ __('Round off') }}{{ round_off }}
{{ __('Total') }}{{ total }}
{{ __('Paid') }}-{{ paid }}
{{ __('Still owed') }}{{ balance }}
{% if invoice.notes %}
{{ invoice.notes }}
{% endif %} {% if payment_details and invoice.status not in ('paid', 'cancelled', 'invoiced', 'declined') %}
{{ __('How to pay') }}
{{ payment_details }}
{% endif %} {% if invoice.terms %}
{{ invoice.terms }}
{% endif %}