# GST Invoice Format

**URL:** <https://forum.manager.io/t/gst-invoice-format/30433>\
**Category:** Uncategorized\
**Created:** [September 7, 2020, 10:46am UTC](https://forum.manager.io/t/gst-invoice-format/30433 "2020-09-07T10:46:36Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![nabenduroy](https://avatars.discourse-cdn.com/v4/letter/n/58956e/32.png) [@nabenduroy](https://forum.manager.io/u/nabenduroy)\
**Post date:** [September 7, 2020, 10:46am UTC](https://forum.manager.io/t/gst-invoice-format/30433/1 "2020-09-07T10:46:36Z")

</div>

Hello All,

I,m using below HTML for GST Invoice Format, it was working fine on version Manager\_19.12.13 but on latest version it’s malfunctioning.

Can anyone please help me to short out the issue?

**Screenshot**

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

**HTML Code**

 {% assign i = 0 %} {% for row in table.rows %} {% assign i = i | plus: 1 %} {% for cell in row.cells %} {% endfor %} {% endfor %} {% for column in table.columns %} {% endfor %} {% for total in table.totals %} {% endfor %} {% for field in custom\_fields %} {% if title == 'Invoice' %} {% if field.label != "Notes" %}{% continue %}{% endif %} {% endif %} {% endfor %} {% if title == 'Invoice' %} {% endif %}

 ![image](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/3X/0/4/0468694b5e2ce997ae3d69f5f8829b49d9957436.png)

| {% if business.logo != null %}{% endif %} 

| {% if title != 'Tax Invoice' %}{{ title }}{% endif %}{% if title == 'Tax Invoice' %}{{ title | replace: "Tax Invoice", "Invoice" }}{% endif %} | ![]() |

```
        <table style="margin-bottom: 20px"><tr>
            <td style="width: 200px; border-left-width: 5px; padding-left: 10px; text-align: left">
                {% for field in fields %}
                <div style="font-weight: bold; font-size: 12px">{{ field.label }}</div>
                <div style="margin-bottom: 10px; font-weight: bold; font-size: 16px">{{ field.text }}</div>
                {% endfor %}
            </td>
            {% if title == 'Invoice' %}
            <td style="width: 260px; padding-left: 20px; border-color: #000000; border-left-width: 1px">
            {% for field in custom_fields %}
            {% if field.label == "Shipped To:" %}{% continue %}{% endif %}
            {% if field.label == "Notes" %}{% continue %}{% endif %}
            {% if field.label == 'Total in words' %}{% continue %}{% endif %}
            <div style="font-size: 12px; padding-bottom: 10px"><b>{{ field.label }}</b> {{ field.text | newline_to_br }}</div>
            {% endfor %}</td>{% endif %}
            <td style="width: 300px; padding-left: 10px; padding-right: 5px; text-align: left; vertical-align: top; border-top-width: 3px; border-bottom-width: 5px">
                <div style="text-align:LEFT;font-weight: bold;font-size: 18px">{{ business.name }}</div>
                <div style="text-align:LEFT;font-size: 12px">{{ business.address | newline_to_br }}</div>
                <div style="text-align:LEFT;font-weight: bold;font-size: 14px">{{ business.identifier }}</div>
            </td>
        </tr></table>
        <table style="margin-bottom: 20px">
        <td style="width: 380px; text-align: left; border-color: #000000; border-bottom-width: 2px; border-top-width: 2px; border-left-width: 2px; border-right-width: 2px">
            {% if title == 'Invoice' %}<div style="padding-left: 5px; border-bottom-width: 2px; text-align:LEFT;font-weight: bold">Billed To:</div>{% endif %}
            <div style="padding-left: 20px">
            <div><b>{{ recipient.name }}</b> {{ recipient.code }}</div>
            <div>{{ recipient.address | newline_to_br }}</div>
            <div><b>{{ recipient.identifier }}</b></div></div>
        </td>
        {% if title == 'Invoice' %}
            <td style="width: 375px; padding-left: 5px; text-align: left; border-color: #000000; border-bottom-width: 2px; border-top-width: 2px; border-left-width: 0px; border-right-width: 2px">
                {% for field in custom_fields %}{% if field.label == 'Shipped To:' %}{% assign consignee = field.text %}
                <div style="padding-left: 5px; border-bottom-width: 2px; text-align:LEFT;font-weight: bold">{{ field.label }}</div>
                <div style="padding-left: 20px">{{ field.text | newline_to_br }}</div>
                {% endif %}{% endfor %}
                {% if consignee == null %}
                <div style="padding-left: 5px; border-bottom-width: 2px; text-align:LEFT;font-weight: bold">Shipped To:</div>
                <div style="padding-left: 20px">
                <div><b>{{ recipient.name }}</b> {{ recipient.code }}</div>
                <div>{{ recipient.address | newline_to_br }}</div>
                <div><b>{{ recipient.identifier }}</b></div></div>{% endif %}
            </td>
        {% endif %}
        </table>

        <div style="font-size: 14px; font-weight: bold; margin-bottom: 20px">{{ description }}</div>
    
</td></tr>

<tr>
    <td style="width: 25px; font-weight: bold; padding: 5px 5px; border-bottom-width: 1px; border-left-width: 1px; border-top-width: 1px; text-align:CENTER">#</td>
    {% for column in table.columns %}            
    <td style="font-weight: bold; padding: 5px 10px; text-align: {{ column.align }}; border-left-width: 1px; border-bottom-width: 1px; border-top-width: 1px{% if forloop.last == true %}; border-right-width: 1px{% endif %}{% if column.nowrap %}; white-space: nowrap; width: 80px{% endif %}">{{ column.label }}</td>
    {% endfor %}
</tr>

```

 |
| {{ i }} | {{ cell.text | newline\_to\_br }} |
| |
| {{ total.label }} | {{ total.text }} |
| 
{% for field in custom\_fields %}{% if field.label == 'Total in words' %}{{ field.text }} Only
{% endif %}{% endfor %} |
| 
{{ field.label }}

{{ field.text | newline\_to\_br }}
 |
| 
We declare that this invoice shows the actual price of the goods or  
service described and that all particulars are true and correct.  
E. & O. E.  
For {{ business.name }}  
  
  
  
Authorised Signatory
 |

---

<div class="post-metadata">

**Author:** ![Joe91](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/joe91/32/35781_2.png) [@Joe91](https://forum.manager.io/u/Joe91)\
**Post date:** [September 7, 2020, 10:59am UTC](https://forum.manager.io/t/gst-invoice-format/30433/2 "2020-09-07T10:59:46Z")

</div>

You don’t say what edition of Manager you are using (Windows, Linux, iOS) but if it is Windows you probably need to update the .Net component of Windows

Search this forum for how to do that

---

<div class="post-metadata">

**Author:** ![nabenduroy](https://avatars.discourse-cdn.com/v4/letter/n/58956e/32.png) [@nabenduroy](https://forum.manager.io/u/nabenduroy)\
**Post date:** [September 7, 2020, 11:18am UTC](https://forum.manager.io/t/gst-invoice-format/30433/3 "2020-09-07T11:18:42Z")

</div>

Thanks for reply…

I’m using Manager\_20.8.99 for windows 10

---

<div class="post-metadata">

**Author:** ![nabenduroy](https://avatars.discourse-cdn.com/v4/letter/n/58956e/32.png) [@nabenduroy](https://forum.manager.io/u/nabenduroy)\
**Post date:** [September 7, 2020, 11:33am UTC](https://forum.manager.io/t/gst-invoice-format/30433/4 "2020-09-07T11:33:11Z")

</div>

.net updated but not working…

---

<div class="post-metadata">

**Author:** ![nabenduroy](https://avatars.discourse-cdn.com/v4/letter/n/58956e/32.png) [@nabenduroy](https://forum.manager.io/u/nabenduroy)\
**Post date:** [September 7, 2020, 12:18pm UTC](https://forum.manager.io/t/gst-invoice-format/30433/5 "2020-09-07T12:18:43Z")

</div>

**Error Code**

Liquid error: Could not load file or assembly ‘System.ValueTuple, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

---

<div class="post-metadata">

**Author:** ![Tut](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/tut/32/3286_2.png) [@Tut](https://forum.manager.io/u/Tut)\
**Post date:** [September 7, 2020, 1:32pm UTC](https://forum.manager.io/t/gst-invoice-format/30433/6 "2020-09-07T13:32:56Z")

</div>

@nabenduroy, this forum is not intended for debugging custom themes. Users are responsible for performance of their own themes. If you do not have the coding skills yourself, you should hire a local programmer to assist.

You were almost 1,000 versions behind when you updated. During that time, there were several major changes to the program, including alterations of the database structure. One disadvantage of highly customized themes is that they are easily broken by program improvements.

---

<div class="post-metadata">

**Author:** ![MarV](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/marv/32/17451_2.png) [@MarV](https://forum.manager.io/u/MarV)\
**Post date:** [September 7, 2020, 3:31pm UTC](https://forum.manager.io/t/gst-invoice-format/30433/7 "2020-09-07T15:31:54Z")

</div>

Also the HTML code you have pasted is incomplete and unreadable. Use Preformatted code button in reply editor or better attach an complete file.

---

<div class="post-metadata">

**Author:** ![nabenduroy](https://avatars.discourse-cdn.com/v4/letter/n/58956e/32.png) [@nabenduroy](https://forum.manager.io/u/nabenduroy)\
**Post date:** [September 7, 2020, 5:12pm UTC](https://forum.manager.io/t/gst-invoice-format/30433/8 "2020-09-07T17:12:18Z")

</div>

```
<table style="padding: 20px 20px">
<thead>
    <tr>
    <td colspan="99">
        <table style="margin-bottom: 10px"><tr>
            <td style="font-weight: bold; font-size: 32px">{% if title != 'Tax Invoice' %}{{ title }}{% endif %}{% if title == 'Tax Invoice' %}{{ title | replace: "Tax Invoice", "Invoice" }}{% endif %}</td>
            {% if business.logo != null %}<td style="text-align: right"><img src="{{ business.logo }}" style="max-height: 150px; max-width: 300px"></td>{% endif %}
        </tr></table>
        
        <table style="margin-bottom: 20px"><tr>
            <td style="width: 200px; border-left-width: 5px; padding-left: 10px; text-align: left">
                {% for field in fields %}
                <div style="font-weight: bold; font-size: 12px">{{ field.label }}</div>
                <div style="margin-bottom: 10px; font-weight: bold; font-size: 16px">{{ field.text }}</div>
                {% endfor %}
            </td>
            {% if title == 'Invoice' %}
            <td style="width: 260px; padding-left: 20px; border-color: #000000; border-left-width: 1px">
            {% for field in custom_fields %}
            {% if field.label == "Shipped To:" %}{% continue %}{% endif %}
            {% if field.label == "Notes" %}{% continue %}{% endif %}
            {% if field.label == 'Total in words' %}{% continue %}{% endif %}
            <div style="font-size: 12px; padding-bottom: 10px"><b>{{ field.label }}</b> {{ field.text | newline_to_br }}</div>
            {% endfor %}</td>{% endif %}
            <td style="width: 300px; padding-left: 10px; padding-right: 5px; text-align: left; vertical-align: top; border-top-width: 3px; border-bottom-width: 5px">
                <div style="text-align:LEFT;font-weight: bold;font-size: 18px">{{ business.name }}</div>
                <div style="text-align:LEFT;font-size: 12px">{{ business.address | newline_to_br }}</div>
                <div style="text-align:LEFT;font-weight: bold;font-size: 14px">{{ business.identifier }}</div>
            </td>
        </tr></table>
        <table style="margin-bottom: 20px">
        <td style="width: 380px; text-align: left; border-color: #000000; border-bottom-width: 2px; border-top-width: 2px; border-left-width: 2px; border-right-width: 2px">
            {% if title == 'Invoice' %}<div style="padding-left: 5px; border-bottom-width: 2px; text-align:LEFT;font-weight: bold">Billed To:</div>{% endif %}
            <div style="padding-left: 20px">
            <div><b>{{ recipient.name }}</b> {{ recipient.code }}</div>
            <div>{{ recipient.address | newline_to_br }}</div>
            <div><b>{{ recipient.identifier }}</b></div></div>
        </td>
        {% if title == 'Invoice' %}
            <td style="width: 375px; padding-left: 5px; text-align: left; border-color: #000000; border-bottom-width: 2px; border-top-width: 2px; border-left-width: 0px; border-right-width: 2px">
                {% for field in custom_fields %}{% if field.label == 'Shipped To:' %}{% assign consignee = field.text %}
                <div style="padding-left: 5px; border-bottom-width: 2px; text-align:LEFT;font-weight: bold">{{ field.label }}</div>
                <div style="padding-left: 20px">{{ field.text | newline_to_br }}</div>
                {% endif %}{% endfor %}
                {% if consignee == null %}
                <div style="padding-left: 5px; border-bottom-width: 2px; text-align:LEFT;font-weight: bold">Shipped To:</div>
                <div style="padding-left: 20px">
                <div><b>{{ recipient.name }}</b> {{ recipient.code }}</div>
                <div>{{ recipient.address | newline_to_br }}</div>
                <div><b>{{ recipient.identifier }}</b></div></div>{% endif %}
            </td>
        {% endif %}
        </table>

        <div style="font-size: 14px; font-weight: bold; margin-bottom: 20px">{{ description }}</div>
    
</td></tr>

<tr>
    <td style="width: 25px; font-weight: bold; padding: 5px 5px; border-bottom-width: 1px; border-left-width: 1px; border-top-width: 1px; text-align:CENTER">#</td>
    {% for column in table.columns %}            
    <td style="font-weight: bold; padding: 5px 10px; text-align: {{ column.align }}; border-left-width: 1px; border-bottom-width: 1px; border-top-width: 1px{% if forloop.last == true %}; border-right-width: 1px{% endif %}{% if column.nowrap %}; white-space: nowrap; width: 80px{% endif %}">{{ column.label }}</td>
    {% endfor %}
</tr>
</thead>
<tbody>
{% assign i = 0 %}
{% for row in table.rows %}
{% assign i = i | plus: 1 %}
<tr>
    <td style="width: 25px; padding: 5px 5px; border-left-width: 1px; text-align:CENTER">{{ i }}</td>
    {% for cell in row.cells %}
    <td style="padding: 5px 10px; text-align: {{ table.columns[forloop.index0].align }}; border-left-width: 1px{% if forloop.last == true %}; border-right-width: 1px{% endif %}{% if table.columns[forloop.index0].nowrap %}; white-space: nowrap; width: 80px{% endif %}">{{ cell.text | newline_to_br }}</td>
    {% endfor %}
</tr>
{% endfor %}
<tr>
{% for column in table.columns %}            
    <td style="border-bottom-width: 1px; border-left-width: 1px{% if forloop.last == true %}; border-right-width: 1px{% endif %}"></td>
{% endfor %}
</tr>
{% for total in table.totals %}
<tr>
    <td colspan="{{ table.columns | size }}" style="padding: 5px 10px; text-align: right{% if total.emphasis == true %}; font-weight: bold{% endif %}">{{ total.label }}</td>
    <td style="border-left-width: 1px; white-space: nowrap; border-right-width: 1px; border-bottom-width: 1px; padding: 5px 10px; text-align: right{% if forloop.first == true %}; border-top-width: 1px{% endif %}{% if total.emphasis == true %}; font-weight: bold{% endif %}">{{ total.text }}</td>
</tr>
{% endfor %}
<tr><td colspan="{{ table.columns | size | plus:1 }}" style="border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px"><div style="font-size: 12px; padding-left: 10px; padding-right: 10px; font-weight: bold">{% for field in custom_fields %}{% if field.label == 'Total in words' %}{{ field.text }} Only</div>{% endif %}{% endfor %}</td></tr>
{% for field in custom_fields %}
{% if title == 'Invoice' %}
{% if field.label != "Notes" %}{% continue %}{% endif %}
{% endif %}
<tr>
    <td colspan="99">
        <div style="font-weight: bold; padding-top: 20px">{{ field.label }}</div>
        <div>{{ field.text | newline_to_br }}</div>
    </td>
</tr>
{% endfor %}
</tbody>
<tfoot>
<tr>
{% if title == 'Invoice' %}
<td colspan="99">
    <div style="text-align: right; font-weight: bold">We declare that this invoice shows the actual price of the goods or<br>service described and that all particulars are true and correct.<br>E. & O. E.<br>For {{ business.name }}<br><br><br><br>Authorised Signatory</div></td>
{% endif %}
</tr>
</tfoot>

```

---

<div class="post-metadata">

**Author:** ![nabenduroy](https://avatars.discourse-cdn.com/v4/letter/n/58956e/32.png) [@nabenduroy](https://forum.manager.io/u/nabenduroy)\
**Post date:** [September 7, 2020, 5:15pm UTC](https://forum.manager.io/t/gst-invoice-format/30433/9 "2020-09-07T17:15:16Z")

</div>

This Code was working fine before installing the update but after update Sl No. (#) column number is not showing.

in place of number it’s show only “Zero”

If you have any idea please share.

---

<div class="post-metadata">

**Author:** ![Tut](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/tut/32/3286_2.png) [@Tut](https://forum.manager.io/u/Tut)\
**Post date:** [September 7, 2020, 5:28pm UTC](https://forum.manager.io/t/gst-invoice-format/30433/10 "2020-09-07T17:28:16Z")

</div>

You need to debug your own code.

---

<div class="post-metadata">

**Author:** ![nabenduroy](https://avatars.discourse-cdn.com/v4/letter/n/58956e/32.png) [@nabenduroy](https://forum.manager.io/u/nabenduroy)\
**Post date:** [September 7, 2020, 5:33pm UTC](https://forum.manager.io/t/gst-invoice-format/30433/11 "2020-09-07T17:33:17Z")

</div>

Understand…

Thanks for your kind suggestion…

It’s really help me…

---

<div class="post-metadata">

**Author:** ![nabenduroy](https://avatars.discourse-cdn.com/v4/letter/n/58956e/32.png) [@nabenduroy](https://forum.manager.io/u/nabenduroy)\
**Post date:** [September 7, 2020, 5:33pm UTC](https://forum.manager.io/t/gst-invoice-format/30433/12 "2020-09-07T17:33:50Z")

</div>

Understand…

Thanks for your kind suggestion…

It’s really help me…

---

<div class="post-metadata">

**Author:** ![MarV](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/marv/32/17451_2.png) [@MarV](https://forum.manager.io/u/MarV)\
**Post date:** [September 7, 2020, 9:52pm UTC](https://forum.manager.io/t/gst-invoice-format/30433/14 "2020-09-07T21:52:46Z")

</div>

It is all good at my side with your theme.

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

Download, and unpack the Manager again. Try in new folder.

---

<div class="post-metadata">

**Author:** ![nabenduroy](https://avatars.discourse-cdn.com/v4/letter/n/58956e/32.png) [@nabenduroy](https://forum.manager.io/u/nabenduroy)\
**Post date:** [September 8, 2020, 6:18am UTC](https://forum.manager.io/t/gst-invoice-format/30433/15 "2020-09-08T06:18:11Z")

</div>

Ok…

---

<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:53pm UTC](https://forum.manager.io/t/gst-invoice-format/30433/16 "2023-01-18T14:53:28Z")

</div>


