Receipt printer slip - Thermal printer


thank you very match for helping i think the code missing amount because in the same line of description and Qty should be amount showing but like you see in purview its empty

{% assign description = null %} {% assign qty = null %} {% assign amount = null %}
{% if business.logo != null %}{% endif %}
</div>
<td style="font-weight: bold; color: #000000; text-align: left; padding-left: 0px; padding-right: 0px; width: inherit; margin: 0 auto;">
  <div style="width: 280px;">
   {% for column in table.columns %}
        {% case column.label %}
            {% when 'Description' or 'Descrição' or 'البيان' %}
                {% assign description = forloop.index0 %}
                <span style="display: block; word-wrap: break-word; width: 53%; float:left">{{ column.label }}</span>
            {% when 'Qty' or 'Qt.' or 'Un' or 'الكمية' %}
                {% assign qty = forloop.index0 %}
                <span style="display: block; word-wrap: break-word; width: 17%; float:left">{{ column.label }}</span>
            {% when 'Valor' or 'Montante' or 'المجموع' %}
                {% assign amount = forloop.index0 %}
                <span style="display: block; word-wrap: break-word; width: 30%; float:left">{{ column.label }}</span>
        {% endcase %}
    {% endfor %}
  </div>
</td>
</div>
{% for row in table.rows %}
{% endfor %} {% for total in table.totals %}
{% endfor %}
{{ business.name }}
{{ business.address | replace: "\n", " " }}
{{ title }}
Customer Name: {{ recipient.name }}
{% for field in fields %}
{{ field.label }}:
{{ field.text }}
{% endfor %}
{% for cell in row.cells %} {% case forloop.index0 %} {% when description %} {{ cell.text }} {% when qty %} {{ cell.text }} {% when amount %} {{ cell.text }} {% endcase %} {% endfor %}
{{ total.label }}: {{ total.text }}
{% for field in custom_fields %}
{{ field.label }}
{{ field.text | newline_to_br }}
{% endfor %}

Thank you for choosing {{ business.name }}.

the true i don’t have any enology on coding that’s why i ask help from the geniuses of this post
thanks to them all

Because you didn’t include ‘Amount’ or ‘Total’ here:

BTW, why do you use 3 languages?

Because @Previsam adapted the code to include Portuguese for Shamsuddin_Esaf | shamsuddin_esaf1 (BTW, same user, 2 accts?) in his 2nd post in the same thread. :wink:

Enology? :wine_glass:And asking help without trying it yourself is against the forum rules. I recommend you read them.

i mean any knowledge mr.mark I will follow your advice by reading the rules. Thank you for your help