# 80mm Thermal Printing

**URL:** <https://forum.manager.io/t/80mm-thermal-printing/38004>\
**Category:** Uncategorized\
**Created:** [November 15, 2021, 3:21pm UTC](https://forum.manager.io/t/80mm-thermal-printing/38004 "2021-11-15T15:21:25Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Ealfardan](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/ealfardan/32/63166_2.png) [@Ealfardan](https://forum.manager.io/u/Ealfardan)\
**Post date:** [November 19, 2021, 10:12am UTC](https://forum.manager.io/t/80mm-thermal-printing/38004/21 "2021-11-19T10:12:53Z")

</div>

Try using this entire theme code instead:

```auto
<table style="background-color: #FFFFFF: width: 404px; color: #000000; text-transform: UPPERCASE\lowercase ;font-size:18px">
{% assign description = null %}
{% assign qty = null %}
{% assign unit price = null %}
{% assign amount = null %}
<thead>
  <tr>
    <td>
     <div style="text-align: center; width: 404px; word-wrap: break-word; margin-top: 10; margin-bottom: 10px">
        <div style="font-size: 30px; font-weight: bold; margin: 5px 0 10px 0">{{ business.name }}</div>
         <div>{{ business.address | replace: "\n", " " }}</div>
         <div style="border: 1px solid #000; width: 404px; height: 1px"></div>
        <div style="font-weight: bold; margin-top: 5px">Customer:<span style="font-weight: normal">{{ recipient.name }}</span></div>
 <tr>
   <td>
       <div style="text-align: left; width: 404px; word-wrap: break-word; margin-bottom: 5px">
        {% for field in fields %}
       <div style="display: inline-block">
        <div style="font-weight: bold; float: left; margin-right: 1px">{{ field.label }}: </div>
        <div style="float:left; margin-bottom: 5px; margin-right: 1px">{{ field.text }}</div>
      </div>
      {% endfor %}
    </td>
   <tr>
  <div style="width: 404px; word-wrap: break-word; margin-bottom: 10px">
    <div style="max-width: 100%; margin: 0 auto">

    </div>
    <td style="font-weight: bold; color: #000000; width: inherit; margin: 0 auto;">
      <div style="width: 404px;">
      <div style="border: 1px solid #000; width: 404px; height:1px"></div>
       {% for column in table.columns %}
            {% case column.label %}
                {% when 'Description' or '<<Prortogese Description>>' %}
                    {% assign description = forloop.index0 %}
                    <span style="padding-left: 0px; display: block; text-align: left; word-wrap: break-word; width: 35%; float:left">{{ column.label }}</span>
                {% when 'Qty' or '<<Portogese Qty>>' %}
                    {% assign qty = forloop.index0 %}
                    <span style="padding-left: 5px; display: block; text-align: right; word-wrap: break-word; width: 15%; float:left">{{ column.label }}</span>
                {% when 'Unit price' or '<<Portogese Unit price>>' %}
                    {% assign Unitprice = forloop.index0 %}
                    <span style="padding-left: 5px; display: block; text-align: right; word-wrap: break-word; width: 20%; float:left">Rate</span>
                {% when 'Total' or 'Amount' or '<<Portogese Total>>' or '<<Portoguese Amount>>' %}
                    {% assign amount = forloop.index0 %}
                    <span style="padding-left: 5px; display: block; text-align: right; word-wrap: break-word; width: 30%; float:left">Amount</span>
            {% endcase %}
        {% endfor %}
      </div>
    </td>
    </div>
   </tr>
 </thead>
 <tbody>
{% for row in table.rows %}
<tr>
  <div style="width: 404px; word-wrap: break-word; margin: 0px 0px 20px 0px; clear: both">
    <div style="max-width: 100%; margin: 0 auto">
      <td style="color: #000000; padding-right: 0px; width: inherit; margin: 0 auto;">
        <div style="width: 404px">
        {% for cell in row.cells %}
            {% case forloop.index0 %}
                {% when description %}
                    <span style="padding-left: 2px; display: block; text-align: left; word-wrap: break-word; width: 35%; float:left">{{ cell.text | newline_to_br }}</span>
                {% when qty %}
                    <span style="padding-left: 5px; display: block; text-align: right; word-wrap: break-word; width: 15%; float:left">{{ cell.text }}</span>
                {% when Unitprice %}
                    <span style="padding-left: 5px; display: block; text-align: right; word-wrap: break-word; width: 20%; float:left">{{ cell.text }}</span>    
                {% when amount %}
                    <span style="padding-left: 5px; display: block; text-align: right; word-wrap: break-word; width: 30%; float:right">{{ cell.text }}</span>
            {% endcase %}
        {% endfor %}
        </div>
      </td>
    </div>
    </div>
   </tr>
   {% endfor %}
   {% for total in table.totals %}
  <tr>
  <div style="width: 404px; word-wrap: break-word; clear: both">
    <div style="max-width: 100%; margin: 0 auto">
      <td style="font-weight: bold; font-size: 20px">
        <div style="width: 404px">
          <span style="text-align: left; display: block; float:left; width: 70%; margin-top: 20px; margin-bottom: 15px;">{{ total.label }}:</span>
          <span style="text-align: right; display: block; float:left; width: 30%; margin-top: 20px; margin-bottom: 15px;">{{ total.text }}</span>
        </div>
      </td>
    </div>
  </div>
</tr>
{% endfor %}
<tr>
  <div style="width: 404px; word-wrap: break-word; margin-bottom: 20px">
    <div style="max-width: 100%; margin: 15px auto 0 auto">
      <td>
        <div style="padding-left: 2px; width: 404px; word-wrap: break-word">
          {% for field in custom_fields %}
          <div style="font-weight: bold; margin-top: 15px">{{ field.label }}</div>
          <div style="padding-bottom: 20px; margin-top: 15px">{{ field.text | newline_to_br }}</div>
          {% endfor %}
        </div>
      </td>
      </div>
    </div>
</tr>
<tr>
  <div style="width: 404px; word-wrap: break-word; margin: 0px 0px 8px 0px">
    <div style="max-width: 100%; margin: 15px auto 15px auto">
      <td>
        <div style="padding-left: 1px; width: 353px; word-wrap: break-word; text-align: center">
         <div style="border: 1px solid #000; width: 404px; height:1px"></div>   
          <p><b>Solution By:- Manager.IO

```

Also, replace anything formatted like this `<<Portuguese description>>` with the portoguese equivalent and don’t leave the markers `<<` and `>>`.

---

<div class="post-metadata">

**Author:** ![AMM](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/amm/32/31994_2.png) [@AMM](https://forum.manager.io/u/AMM)\
**Post date:** [November 19, 2021, 10:16am UTC](https://forum.manager.io/t/80mm-thermal-printing/38004/22 "2021-11-19T10:16:48Z")

</div>

Can you please help me to do that as well

---

<div class="post-metadata">

**Author:** ![Ealfardan](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/ealfardan/32/63166_2.png) [@Ealfardan](https://forum.manager.io/u/Ealfardan)\
**Post date:** [November 19, 2021, 10:36am UTC](https://forum.manager.io/t/80mm-thermal-printing/38004/23 "2021-11-19T10:36:09Z")

</div>

That should change a lot of the theme sections like:

- column headers
- cells
- totals

In addition to the piece of code @sharpdrivetek just provided. Also, it would take away from the space used for other columns since you are already using 80mm paper rolls.

A simpler less invasive alternative is to insert the serials inside the description, to do that you should replace this code fragment:

```auto
{% for row in table.rows %}
<tr>
  <div style="width: 404px; word-wrap: break-word; margin: 0px 0px 20px 0px; clear: both">
    <div style="max-width: 100%; margin: 0 auto">
      <td style="color: #000000; padding-right: 0px; width: inherit; margin: 0 auto;">
        <div style="width: 404px">
        {% for cell in row.cells %}
            {% case forloop.index0 %}
                {% when description %}
                    <span style="padding-left: 2px; display: block; text-align: left; word-wrap: break-word; width: 35%; float:left">{{ cell.text | newline_to_br }}</span>

```

With this code fragment:

```auto
{% for row in table.rows %}
{% assign rowNumber = forloop.index %}
<tr>
  <div style="width: 404px; word-wrap: break-word; margin: 0px 0px 20px 0px; clear: both">
    <div style="max-width: 100%; margin: 0 auto">
      <td style="color: #000000; padding-right: 0px; width: inherit; margin: 0 auto;">
        <div style="width: 404px">
        {% for cell in row.cells %}
            {% case forloop.index0 %}
                {% when description %}
                    <span style="padding-left: 2px; display: block; text-align: left; word-wrap: break-word; width: 35%; float:left"><b>{{ rowNumber }}.&nbsp;</b>{{ cell.text | newline_to_br }}</span>

```

---

<div class="post-metadata">

**Author:** ![sharpdrivetek](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/sharpdrivetek/32/34244_2.png) [@sharpdrivetek](https://forum.manager.io/u/sharpdrivetek)\
**Post date:** [November 19, 2021, 10:39am UTC](https://forum.manager.io/t/80mm-thermal-printing/38004/24 "2021-11-19T10:39:48Z")

</div>

included line numbers.

```auto
<table style="background-color: #FFFFFF: width: 404px; color: #000000; text-transform: UPPERCASE\lowercase ;font-size:18px">
{% assign description = null %}
{% assign qty = null %}
{% assign unit price = null %}
{% assign amount = null %}
<thead>
  <tr>
    <td>
     <div style="text-align: center; width: 404px; word-wrap: break-word; margin-top: 10; margin-bottom: 10px">
        <div style="font-size: 30px; font-weight: bold; margin: 5px 0 10px 0">{{ business.name }}</div>
         <div>{{ business.address | replace: "\n", " " }}</div>
         <div style="border: 1px solid #000; width: 404px; height: 1px"></div>
        <div style="font-weight: bold; margin-top: 5px">Customer:<span style="font-weight: normal">{{ recipient.name }}</span></div>
 <tr>
   <td>
       <div style="text-align: left; width: 404px; word-wrap: break-word; margin-bottom: 5px">
        {% for field in fields %}
       <div style="display: inline-block">
        <div style="font-weight: bold; float: left; margin-right: 1px">{{ field.label }}: </div>
        <div style="float:left; margin-bottom: 5px; margin-right: 1px">{{ field.text }}</div>
      </div>
      {% endfor %}
    </td>
   <tr>
  <div style="width: 404px; word-wrap: break-word; margin-bottom: 10px">
    <div style="max-width: 100%; margin: 0 auto">

    </div>
    <td style="font-weight: bold; color: #000000; width: inherit; margin: 0 auto;">
      <div style="width: 404px;">
      <div style="border: 1px solid #000; width: 404px; height:1px"></div>
       <div style="padding-left: 0px; display: block; text-align: left; word-wrap: break-word; width: 5%; float:left">#</div>
       {% for column in table.columns %}
            {% case column.label %}
                {% when 'Description' %}
                    {% assign description = forloop.index0 %}
                    <span style="padding-left: 5px; display: block; text-align: left; word-wrap: break-word; width: 30%; float:left">{{ column.label }}</span>
                {% when 'Qty' %}
                    {% assign qty = forloop.index0 %}
                    <span style="padding-left: 5px; display: block; text-align: right; word-wrap: break-word; width: 15%; float:left">{{ column.label }}</span>
                {% when 'Unit price' %}
                    {% assign Unitprice = forloop.index0 %}
                    <span style="padding-left: 5px; display: block; text-align: right; word-wrap: break-word; width: 20%; float:left">Rate</span>
                {% when 'Total' or 'Amount' %}
                    {% assign amount = forloop.index0 %}
                    <span style="padding-left: 5px; display: block; text-align: right; word-wrap: break-word; width: 30%; float:left">Amount</span>
            {% endcase %}
        {% endfor %}
      </div>
    </td>
    </div>
   </tr>
 </thead>
 <tbody>
{% for row in table.rows %}
<tr>
  <div style="width: 404px; word-wrap: break-word; margin: 0px 0px 20px 0px; clear: both">
    <div style="max-width: 100%; margin: 0 auto">
      <td style="color: #000000; padding-right: 0px; width: inherit; margin: 0 auto;">
        <div style="width: 404px">
        <div style="padding-left: 0px; display: block; text-align: left; word-wrap: break-word; width: 5%; float:left">{{ forloop.index0 | plus:1 }}</div>
        {% for cell in row.cells %}
            {% case forloop.index0 %}
                {% when description %}
                    <span style="padding-left: 5px; display: block; text-align: left; word-wrap: break-word; width: 30%; float:left">{{ cell.text | newline_to_br }}</span>
                {% when qty %}
                    <span style="padding-left: 5px; display: block; text-align: right; word-wrap: break-word; width: 15%; float:left">{{ cell.text }}</span>
                {% when Unitprice %}
                    <span style="padding-left: 5px; display: block; text-align: right; word-wrap: break-word; width: 20%; float:left">{{ cell.text }}</span>    
                {% when amount %}
                    <span style="padding-left: 5px; display: block; text-align: right; word-wrap: break-word; width: 30%; float:right">{{ cell.text }}</span>
            {% endcase %}
        {% endfor %}
        </div>
      </td>
    </div>
    </div>
   </tr>
   {% endfor %}
   {% for total in table.totals %}
  <tr>
  <div style="width: 404px; word-wrap: break-word; clear: both">
    <div style="max-width: 100%; margin: 0 auto">
      <td style="font-weight: bold; font-size: 20px">
        <div style="width: 404px">
          <span style="text-align: left; display: block; float:left; width: 70%; margin-top: 20px; margin-bottom: 15px;">{{ total.label }}:</span>
          <span style="text-align: right; display: block; float:left; width: 30%; margin-top: 20px; margin-bottom: 15px;">{{ total.text }}</span>
        </div>
      </td>
    </div>
  </div>
</tr>
{% endfor %}
<tr>
  <div style="width: 404px; word-wrap: break-word; margin-bottom: 20px">
    <div style="max-width: 100%; margin: 15px auto 0 auto">
      <td>
        <div style="padding-left: 2px; width: 404px; word-wrap: break-word">
          {% for field in custom_fields %}
          <div style="font-weight: bold; margin-top: 15px">{{ field.label }}</div>
          <div style="padding-bottom: 20px; margin-top: 15px">{{ field.text | newline_to_br }}</div>
          {% endfor %}
        </div>
      </td>
      </div>
    </div>
</tr>
<tr>
  <div style="width: 404px; word-wrap: break-word; margin: 0px 0px 8px 0px">
    <div style="max-width: 100%; margin: 15px auto 15px auto">
      <td>
        <div style="padding-left: 1px; width: 353px; word-wrap: break-word; text-align: center">
         <div style="border: 1px solid #000; width: 404px; height:1px"></div>   
          <p><b>Solution By:- Manager.IO

```

---

<div class="post-metadata">

**Author:** ![Ealfardan](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/ealfardan/32/63166_2.png) [@Ealfardan](https://forum.manager.io/u/Ealfardan)\
**Post date:** [November 19, 2021, 10:49am UTC](https://forum.manager.io/t/80mm-thermal-printing/38004/25 "2021-11-19T10:49:33Z")

</div>

@sharpdrivetek brilliant.  
And I was thinking it was a table this entire time

---

<div class="post-metadata">

**Author:** ![sharpdrivetek](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/sharpdrivetek/32/34244_2.png) [@sharpdrivetek](https://forum.manager.io/u/sharpdrivetek)\
**Post date:** [November 19, 2021, 10:52am UTC](https://forum.manager.io/t/80mm-thermal-printing/38004/26 "2021-11-19T10:52:28Z")

</div>

@Ealfardan i would prefer using your solution for 80mm paper size because it would be more reliable when the number of line items goes in 3 figure ranges.

---

<div class="post-metadata">

**Author:** ![AMM](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/amm/32/31994_2.png) [@AMM](https://forum.manager.io/u/AMM)\
**Post date:** [November 19, 2021, 11:17am UTC](https://forum.manager.io/t/80mm-thermal-printing/38004/27 "2021-11-19T11:17:43Z")

</div>

Excellent 👌

---

<div class="post-metadata">

**Author:** ![Shamsuddin\_Esaf](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@Shamsuddin\_Esaf](https://forum.manager.io/u/Shamsuddin_Esaf)\
**Post date:** [November 19, 2021, 1:04pm UTC](https://forum.manager.io/t/80mm-thermal-printing/38004/28 "2021-11-19T13:04:00Z")

</div>

> [@Ealfardan](#):
>
> Try using this entire theme code instead:

not work

 ![Captura de Ecrã (33)](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/3X/7/7/77526c6df34d607de33852133631f1123dd04398.png)

---

<div class="post-metadata">

**Author:** ![Ealfardan](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/ealfardan/32/63166_2.png) [@Ealfardan](https://forum.manager.io/u/Ealfardan)\
**Post date:** [November 19, 2021, 1:13pm UTC](https://forum.manager.io/t/80mm-thermal-printing/38004/29 "2021-11-19T13:13:41Z")

</div>

You must replace:

- \<\> with the word for description in portogese translation
- \<\> with the word for Qty in portogese translation
- …

Or just try this

```auto
<table style="background-color: #FFFFFF: width: 404px; color: #000000; text-transform: UPPERCASE\lowercase ;font-size:18px">
{% assign description = null %}
{% assign qty = null %}
{% assign unit price = null %}
{% assign amount = null %}
<thead>
  <tr>
    <td>
     <div style="text-align: center; width: 404px; word-wrap: break-word; margin-top: 10; margin-bottom: 10px">
        <div style="font-size: 30px; font-weight: bold; margin: 5px 0 10px 0">{{ business.name }}</div>
         <div>{{ business.address | replace: "\n", " " }}</div>
         <div style="border: 1px solid #000; width: 404px; height: 1px"></div>
        <div style="font-weight: bold; margin-top: 5px">Customer:<span style="font-weight: normal">{{ recipient.name }}</span></div>
 <tr>
   <td>
       <div style="text-align: left; width: 404px; word-wrap: break-word; margin-bottom: 5px">
        {% for field in fields %}
       <div style="display: inline-block">
        <div style="font-weight: bold; float: left; margin-right: 1px">{{ field.label }}: </div>
        <div style="float:left; margin-bottom: 5px; margin-right: 1px">{{ field.text }}</div>
      </div>
      {% endfor %}
    </td>
   <tr>
  <div style="width: 404px; word-wrap: break-word; margin-bottom: 10px">
    <div style="max-width: 100%; margin: 0 auto">

    </div>
    <td style="font-weight: bold; color: #000000; width: inherit; margin: 0 auto;">
      <div style="width: 404px;">
      <div style="border: 1px solid #000; width: 404px; height:1px"></div>
       {% for column in table.columns %}
            {% case column.label %}
                {% when 'Description' or 'Descrição' %}
                    {% assign description = forloop.index0 %}
                    <span style="padding-left: 0px; display: block; text-align: left; word-wrap: break-word; width: 35%; float:left">{{ column.label }}</span>
                {% when 'Qty' or 'Qt.' %}
                    {% assign qty = forloop.index0 %}
                    <span style="padding-left: 5px; display: block; text-align: right; word-wrap: break-word; width: 15%; float:left">{{ column.label }}</span>
                {% when 'Unit price' or 'Preço unitário' %}
                    {% assign Unitprice = forloop.index0 %}
                    <span style="padding-left: 5px; display: block; text-align: right; word-wrap: break-word; width: 20%; float:left">Rate</span>
                {% when 'Total' or 'Amount' or '<<Portogese Total>>' or 'Valor' %}
                    {% assign amount = forloop.index0 %}
                    <span style="padding-left: 5px; display: block; text-align: right; word-wrap: break-word; width: 30%; float:left">Amount</span>
            {% endcase %}
        {% endfor %}
      </div>
    </td>
    </div>
   </tr>
 </thead>
 <tbody>
{% for row in table.rows %}
<tr>
  <div style="width: 404px; word-wrap: break-word; margin: 0px 0px 20px 0px; clear: both">
    <div style="max-width: 100%; margin: 0 auto">
      <td style="color: #000000; padding-right: 0px; width: inherit; margin: 0 auto;">
        <div style="width: 404px">
        {% for cell in row.cells %}
            {% case forloop.index0 %}
                {% when description %}
                    <span style="padding-left: 2px; display: block; text-align: left; word-wrap: break-word; width: 35%; float:left">{{ cell.text | newline_to_br }}</span>
                {% when qty %}
                    <span style="padding-left: 5px; display: block; text-align: right; word-wrap: break-word; width: 15%; float:left">{{ cell.text }}</span>
                {% when Unitprice %}
                    <span style="padding-left: 5px; display: block; text-align: right; word-wrap: break-word; width: 20%; float:left">{{ cell.text }}</span>    
                {% when amount %}
                    <span style="padding-left: 5px; display: block; text-align: right; word-wrap: break-word; width: 30%; float:right">{{ cell.text }}</span>
            {% endcase %}
        {% endfor %}
        </div>
      </td>
    </div>
    </div>
   </tr>
   {% endfor %}
   {% for total in table.totals %}
  <tr>
  <div style="width: 404px; word-wrap: break-word; clear: both">
    <div style="max-width: 100%; margin: 0 auto">
      <td style="font-weight: bold; font-size: 20px">
        <div style="width: 404px">
          <span style="text-align: left; display: block; float:left; width: 70%; margin-top: 20px; margin-bottom: 15px;">{{ total.label }}:</span>
          <span style="text-align: right; display: block; float:left; width: 30%; margin-top: 20px; margin-bottom: 15px;">{{ total.text }}</span>
        </div>
      </td>
    </div>
  </div>
</tr>
{% endfor %}
<tr>
  <div style="width: 404px; word-wrap: break-word; margin-bottom: 20px">
    <div style="max-width: 100%; margin: 15px auto 0 auto">
      <td>
        <div style="padding-left: 2px; width: 404px; word-wrap: break-word">
          {% for field in custom_fields %}
          <div style="font-weight: bold; margin-top: 15px">{{ field.label }}</div>
          <div style="padding-bottom: 20px; margin-top: 15px">{{ field.text | newline_to_br }}</div>
          {% endfor %}
        </div>
      </td>
      </div>
    </div>
</tr>
<tr>
  <div style="width: 404px; word-wrap: break-word; margin: 0px 0px 8px 0px">
    <div style="max-width: 100%; margin: 15px auto 15px auto">
      <td>
        <div style="padding-left: 1px; width: 353px; word-wrap: break-word; text-align: center">
         <div style="border: 1px solid #000; width: 404px; height:1px"></div>   
          <p><b>Solution By:- Manager.IO

```

---

<div class="post-metadata">

**Author:** ![eko](https://avatars.discourse-cdn.com/v4/letter/e/a8b319/32.png) [@eko](https://forum.manager.io/u/eko)\
**Post date:** [November 19, 2021, 1:55pm UTC](https://forum.manager.io/t/80mm-thermal-printing/38004/30 "2021-11-19T13:55:23Z")

</div>

> [@Ealfardan](#):
>
> ` {% when 'Description' or '<<Prortogese Description>>' %}`

If you cut and paste this code you will notice that you wrote P **r** ortogese in stead of the Portogese used elsewhere. In any case English reference is written as Portuguese.

---

<div class="post-metadata">

**Author:** ![Ealfardan](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/ealfardan/32/63166_2.png) [@Ealfardan](https://forum.manager.io/u/Ealfardan)\
**Post date:** [November 19, 2021, 2:02pm UTC](https://forum.manager.io/t/80mm-thermal-printing/38004/31 "2021-11-19T14:02:53Z")

</div>

I blame this on autocorrect.

---

<div class="post-metadata">

**Author:** ![Shamsuddin\_Esaf](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@Shamsuddin\_Esaf](https://forum.manager.io/u/Shamsuddin_Esaf)\
**Post date:** [November 19, 2021, 2:25pm UTC](https://forum.manager.io/t/80mm-thermal-printing/38004/32 "2021-11-19T14:25:47Z")

</div>

already tried it but the same problem

---

<div class="post-metadata">

**Author:** ![sharpdrivetek](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/sharpdrivetek/32/34244_2.png) [@sharpdrivetek](https://forum.manager.io/u/sharpdrivetek)\
**Post date:** [November 19, 2021, 2:32pm UTC](https://forum.manager.io/t/80mm-thermal-printing/38004/33 "2021-11-19T14:32:08Z")

</div>

@Shamsuddin_Esaf you need to hire a Portuguese programmer locally who can change the code.  
or you can change the codes yourself as per all the instructions given above by other users.

---

<div class="post-metadata">

**Author:** ![Ealfardan](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/ealfardan/32/63166_2.png) [@Ealfardan](https://forum.manager.io/u/Ealfardan)\
**Post date:** [November 19, 2021, 5:10pm UTC](https://forum.manager.io/t/80mm-thermal-printing/38004/34 "2021-11-19T17:10:29Z")

</div>

I have checked it and here was a missing `'`.

I haved edited my last post, you should try again. It works.

 ![Screenshot_20211119-185630](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/3X/0/6/06eb7f2e54cae12c7b6032672a4e6e918c08471e.png)

---

<div class="post-metadata">

**Author:** ![Shamsuddin\_Esaf](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@Shamsuddin\_Esaf](https://forum.manager.io/u/Shamsuddin_Esaf)\
**Post date:** [November 20, 2021, 8:14am UTC](https://forum.manager.io/t/80mm-thermal-printing/38004/35 "2021-11-20T08:14:24Z")

</div>

Thank you, it’s already working, but the rate and Amount description doesn’t change, it always appears in English, but no problem, I’m configured differently

---

<div class="post-metadata">

**Author:** ![AMM](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/amm/32/31994_2.png) [@AMM](https://forum.manager.io/u/AMM)\
**Post date:** [November 20, 2021, 8:16am UTC](https://forum.manager.io/t/80mm-thermal-printing/38004/36 "2021-11-20T08:16:38Z")

</div>

Hi,  
One more thing  
When printed in this theme every document looks like Sales Invoice without Heading of the Document.  
Is there any way to include the Headings.  
(Invoice, Sales Quote, Sales Order, Delivery Order, Credit Note, Purchase Order etc)  
If Yes can you please help

---

<div class="post-metadata">

**Author:** ![sharpdrivetek](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/sharpdrivetek/32/34244_2.png) [@sharpdrivetek](https://forum.manager.io/u/sharpdrivetek)\
**Post date:** [November 20, 2021, 8:51am UTC](https://forum.manager.io/t/80mm-thermal-printing/38004/37 "2021-11-20T08:51:15Z")

</div>

The code of the theme is based on the contents of sales invoice. You will need a new theme if you wish to use it for other transactions. This is beyond the scope of the forum. Please hire a local programmer to create a theme suitable for your needs.

---

<div class="post-metadata">

**Author:** ![Ealfardan](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/ealfardan/32/63166_2.png) [@Ealfardan](https://forum.manager.io/u/Ealfardan)\
**Post date:** [November 20, 2021, 9:01am UTC](https://forum.manager.io/t/80mm-thermal-printing/38004/38 "2021-11-20T09:01:43Z")

</div>

`float:left">Rate</span>`  
`float:left">Amount</span>`

Search for these fragments and change the words Rate and Amount

---

<div class="post-metadata">

**Author:** ![Ealfardan](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/ealfardan/32/63166_2.png) [@Ealfardan](https://forum.manager.io/u/Ealfardan)\
**Post date:** [January 18, 2023, 2:44pm UTC](https://forum.manager.io/t/80mm-thermal-printing/38004/39 "2023-01-18T14:44:03Z")

</div>



---

<div class="post-metadata">

**Author:** ![Abeiku](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/abeiku/32/44970_2.png) [@Abeiku](https://forum.manager.io/u/Abeiku)\
**Post date:** [July 20, 2026, 5:05pm UTC](https://forum.manager.io/t/80mm-thermal-printing/38004/40 "2026-07-20T17:05:09Z")

</div>

```auto
<table style="background-color:#FFFFFF; width:404px; color:#000000; font-size:18px; text-transform:none;">

{% assign description = null %}
{% assign qty = null %}
{% assign unit_price = null %}
{% assign amount = null %}

<thead>

<!-- LOGO -->

<tr>
    <td style="text-align:center;">
      {% if business.logo != null %}
        <img src="{{ business.logo }}" style="max-height:150px; max-width:200px; margin:0 auto 10px;">
      {% endif %}
    </td>
  </tr>

<!-- HEADER -->

<tr>
    <td style="text-align:center; width:404px;">

  <div style="font-size:30px; font-weight:bold;">
    {{ business.name }}
  </div>

  <div>
    {{ business.address | replace: "\n", " " }}
  </div>

  <div style="border:1px solid #000; width:404px;"></div>

  <div style="font-size:30px; font-weight:bold;">
    {{ title }}
  </div>

  <div>
    <strong>Customer:</strong>
    <span style="font-weight:normal">{{ recipient.name }}</span>
  </div>

</td>

</tr>

<!-- FIELDS -->

<tr>
    <td>
      {% for field in fields %}
        <div style="display:inline-block;">
          <strong>{{ field.label }}:</strong>
          <span>{{ field.text }}</span>
        </div>
      {% endfor %}
    </td>
  </tr>

<!-- COLUMN HEADERS -->

<tr>
    <td>

  <div style="border-top:1px solid #000; width:404px;"></div>

  <div style="display:flex; width:404px; font-weight:bold;">

    <div style="width:5%;">#</div>

    {% for column in table.columns %}
      {% case column.label %}

        {% when 'Description' %}
          {% assign description = forloop.index0 %}
          <div style="width:40%;">{{ column.label }}</div>

        {% when 'Qty' %}
          {% assign qty = forloop.index0 %}
          <div style="width:10%; text-align:right;">{{ column.label }}</div>

        {% when 'Unit price' %}
          {% assign unit_price = forloop.index0 %}
          <div style="width:15%; text-align:right;">Price</div>

        {% when 'Total' or 'Amount' %}
          {% assign amount = forloop.index0 %}
          <div style="width:30%; text-align:right;">Amount</div>

      {% endcase %}
    {% endfor %}

  </div>

</td>

</tr>

</thead>

<tbody>

<!-- ROWS -->

{% for row in table.rows %}

<tr>
    <td>

  <div style="display:flex; width:404px;">

    <div style="width:5%;">{{ forloop.index }}</div>

    {% for cell in row.cells %}
      {% case forloop.index0 %}

        {% when description %}
          <div style="width:40%;">{{ cell.text | newline_to_br }}</div>

        {% when qty %}
          <div style="width:10%; text-align:center;">{{ cell.text }}</div>

        {% when unit_price %}
          <div style="width:15%; text-align:right;">{{ cell.text }}</div>

        {% when amount %}
          <div style="width:30%; text-align:right;">{{ cell.text }}</div>

      {% endcase %}
    {% endfor %}

  </div>

</td>

</tr>
  {% endfor %}

<!-- TOTALS -->

{% for total in table.totals %}

<tr>
    <td>

  <div style="display:flex; width:404px; font-weight:bold; font-size:20px; margin-top:15px;">
    <div style="width:70%;">{{ total.label }}</div>
    <div style="width:30%; text-align:right;">{{ total.text }}</div>
  </div>

</td>

</tr>
  {% endfor %}

<!-- CUSTOM FIELDS -->

<tr>
    <td>

  {% for field in custom_fields %}
    <div style="font-weight:bold; margin-top:15px;">
      {{ field.label }}
    </div>
    <div style="margin-bottom:15px;">
      {{ field.text | newline_to_br }}
    </div>
  {% endfor %}

</td>

</tr>

<!-- FOOTER -->

<tr>
    <td style="text-align:center;">

  <div style="border-top:1px solid #000; width:404px;"></div>

  <strong>THANKS!</strong><br>
  Follow us on Instagram & TikTok<br>
  @hair_and_accessoriesgh

</td>

</tr>

</tbody>

</table>

```

Leaving this here for a friend

output:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/3X/a/3/a3499ca012940a1c2cc1f2ce2d31c7b62bb5092c.png)

[Previous page](https://forum.manager.io/t/80mm-thermal-printing/38004.md?page=1)
