{# Orders bill receipt (self-contained so POS/flexy needs — customer address line, no PENDING stamp — ship without a core binary rebuild; plugin templates overlay from disk). Mirrors templates/macros/order_receipt.html. #} {% set bill_timezone = settings.timezone %} {% include "partials/theme_init_head.html" %} Receipt - {{ order.order_number }}
{{ store.name | default(value="Blocks Store") }}
{{ store.address | default(value="") }}
{% if store.phone %}
Tel: {{ store.phone }}
{% endif %} {% if store.email %}
Email: {{ store.email }}
{% endif %} {% if store.gst %}
GST: {{ store.gst }}
{% endif %}
Receipt: {{ order.order_number }}
Date: {{ order.created_at | date_in_tz(timezone=bill_timezone) }}
Customer: {{ customer.name | default(value="Guest") }}
{% if customer.phone %}
Phone: {{ customer.phone }}
{% endif %} {% if customer.email %}
Email: {{ customer.email }}
{% endif %} {% if customer.address | default(value="") %}
Address: {{ customer.address }}
{% endif %}
{% for item in items %} {% set s = item.status | default(value="") %} {% if s != 'rejected' and s != 'cancelled' and s != 'refunded' %} {% endif %} {% endfor %}
Item Qty Price Amt
{{ item.product_name }} {% if item.variant_name %}
({{ item.variant_name }}){% endif %} {% if item.tax_rule_name %}
{{ item.tax_rule_name }} ({{ item.tax_rate_percent }}%){% endif %}
{{ item.quantity }} {{ item.unit_price }} {{ item.subtotal }}
Subtotal: {{ order.subtotal }}
{% if order.shipping_fee > 0 %}
Shipping: {{ order.shipping_fee }}
{% endif %} {% if order.tax > 0 %}
Tax: {{ order.tax }}
{% endif %} {% if order.tip > 0 %}
Tip: {{ order.tip }}
{% endif %} {% set intermediate_total = order.subtotal + order.shipping_fee + order.tax + order.tip %}
Total: {{ intermediate_total }}
{% if order.discount > 0 %}
Discount {% if order.coupon_code %}({{ order.coupon_code }}){% endif %}: -{{ order.discount }}
{% endif %} {% if order.wallet_used > 0 %}
Wallet Used: -{{ order.wallet_used }}
{% endif %}
Total Payable: {{ order.total }}