A seguinte marcação imprime o pedido similar a impressão completa, utilize ela como base para personalizar sua impressão no formato HTML:
#### <center>#{{ code }} Posição {{ position }}</center>
##### <center>{{ channel_label }} {{ delivery_method_label }}</center>
<hr>
##### <center>{{ restaurant_name }}</center>
<small>{{ restaurant_address }} | {{ restaurant_phone }} | {{ restaurant_document }} | {{ now }}</small>
{% if localizer %}
Localizador: {{ localizer }}
{% endif %}
{% if channel == 'ifood' %}
Entregue por: {{ delivered_by_label }}
{% endif %}
{% if table_name %}
Tabela: {{ table_name }}
{% endif %}
{% if card %}
Comanda: {{ card }}
{% endif %}
{% if motoboy_name %}
Entregador: {{ motoboy_name }}
{% endif %}
{% if scheduled%}
Agendado para {{ schedule }}
Preparo: {{ to_start_preparation_at }}
{% else %}
Previsao de entrega: {{ schedule }}
{% endif %}
{% if name %}
<hr>
###### **{{ name }}**
Telefone: {{ phone }} Pedidos: {{ orders_count }}
{% if nf_document %}
Documento: {{ nf_document }}
{% endif %}
{% if nf_number %}
NF: {{ nf_number }}
{% endif %}
{% if customer_observations %}
<hr>
#### {{ customer_observations }}
{% endif %}
{% endif %}
{% if delivery_method == 'delivery' %}
<hr>
{{ address }}
{{ reference }}
{{ observations }}
{% endif %}
<hr>
{{ items_table }}
<table width="100%">
<tr>
<td>Subtotal</td>
<td style="text-align:right;white-space:nowrap">{{ subtotal_text }}</td>
</tr>
{% if freight_price > 0 %}
<tr>
<td>Taxa de entrega</td>
<td style="text-align:right;white-space:nowrap">{{ freight_price_text }}</td>
</tr>
{% endif %}
{% if service_fee > 0 %}
<tr>
<td>Taxa de serviço</td>
<td style="text-align:right;white-space:nowrap">{{ service_fee_text }}</td>
</tr>
{% endif %}
{% if couvert > 0 %}
<tr>
<td>Cover</td>
<td style="text-align:right;white-space:nowrap">{{ couvert_text }}</td>
</tr>
{% endif %}
{% if discount > 0 %}
<tr>
<td>
Desconto
{% if coupon_discount > 0 %}
<div style="margin-left:10px"><small>Cupom: {{ coupon_discount_text }}</small></div>
{% endif %}
{% if promotion_discount > 0 %}
<div style="margin-left:10px"><small>Promoção {{ promotion_name }}: {{ promotion_discount_text }}</small></div>
{% endif %}
{% if payment_method_discount > 0 %}
<div style="margin-left:10px"><small>Método de pagamento: {{ payment_method_discount_text }}</small></div>
{% endif %}
</td>
<td style="text-align:right;white-space:nowrap">{{ discount_text }}</td>
</tr>
{% endif %}
<tr>
<td><strong>Total</strong></td>
<td style="text-align:right;white-space:nowrap"><strong>{{ total_text }}</strong></td>
</tr>
</table>
{{ payments_table }}
{% if on_trust %}
<hr>
##### <center>Vendido a crédito</center>
<center>Assinatura do cliente</center>
<br>
<br>
<br>
<br>
<br>
{% endif %}
A seguinte marcação é um exemplo de impressão para cozinha no formato HTML:
#### <center>#{{ code }} Posição {{ position }}</center>
##### <center>{{ channel_label }} {{ delivery_method_label }}</center>
##### <center>{{ restaurant_name }}</center>
{% if localizer %}
Localizador: {{ localizer }}
{% endif %}
{% if table_name %}
Mesa: {{ table_name }}
{% endif %}
{% if card %}
Comanda: {{ card }}
{% endif %}
{% if scheduled%}
Agendado para {{ schedule }}
Preparo: {{ to_start_preparation_at }}
{% else %}
Previsao de entrega: {{ schedule }}
{% endif %}
{% if orderer_name %}
Atendente: {{ orderer_name }}
{% endif %}
{% if name %}
###### **{{ name }}**
{% if customer_observations %}
#### {{ customer_observations }}
{% endif %}
{% endif %}
{{ items_table }}
Para o formato ESC/POS, comece com o seguinte template:
# #{{ code }} Posicao {{ position }}
# {{ channel_label }}
# {{ delivery_method_label }}
<hr>
# {{ restaurant_name }}
<small>{{ restaurant_address }} | {{ restaurant_phone }} | {{ restaurant_document }} | {{ now }}</small>
<br>
{% if localizer %}
Localizador: {{ localizer }}
{% endif %}
{% if channel == 'ifood' %}
Entregue por: {{ delivered_by_label }}
{% endif %}
{% if table_name %}
Tabela: {{ table_name }}
{% endif %}
{% if card %}
Comanda: {{ card }}
{% endif %}
{% if motoboy_name %}
Entregador: {{ motoboy_name }}
{% endif %}
{% if scheduled%}
Agendado para {{ schedule }}
Preparo: {{ to_start_preparation_at }}
{% else %}
Previsao de entrega: {{ schedule }}
{% endif %}
{% if name %}
<hr>
# {{ name }}
Telefone: {{ phone }} Pedidos: {{ orders_count }}
{% if nf_document %}
Documento: {{ nf_document }}
{% endif %}
{% if nf_number %}
NF: {{ nf_number }}
{% endif %}
{% if customer_observations %}
<hr>
# {{ customer_observations }}
{% endif %}
{% endif %}
{% if delivery_method == 'delivery' %}
<hr>
{{ address }}
{{ reference }}
{{ observations }}
{% endif %}
<br>
{{ items_table }}
{{ totals_table }}
{{ payments_table }}
{% if on_trust %}
<hr>
# Vendido a crédito
<center>Assinatura do cliente</center>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
{% endif %}
Comentários
0 comentário
Por favor, entre para comentar.