# Add extra column to theme

**URL:** <https://forum.manager.io/t/add-extra-column-to-theme/36040>\
**Category:** Uncategorized\
**Created:** [July 12, 2021, 3:26pm UTC](https://forum.manager.io/t/add-extra-column-to-theme/36040 "2021-07-12T15:26:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![haneefa](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/haneefa/32/29304_2.png) [@haneefa](https://forum.manager.io/u/haneefa)\
**Post date:** [July 12, 2021, 3:26pm UTC](https://forum.manager.io/t/add-extra-column-to-theme/36040/1 "2021-07-12T15:26:43Z")

</div>

Dears  
Is there any way to show vat tax on each line of the invoice records in themes  
Like

Item. Qty. unite price. SumBeforeVat. Vat%. SumAfterVat.

Thanks for ur software any Way

---

<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:** [July 12, 2021, 3:29pm UTC](https://forum.manager.io/t/add-extra-column-to-theme/36040/2 "2021-07-12T15:29:08Z")

</div>

Yes there is, but it’s not trivial work. It’s better to hire a developer.

---

<div class="post-metadata">

**Author:** ![haneefa](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/haneefa/32/29304_2.png) [@haneefa](https://forum.manager.io/u/haneefa)\
**Post date:** [July 13, 2021, 8:35am UTC](https://forum.manager.io/t/add-extra-column-to-theme/36040/3 "2021-07-13T08:35:04Z")

</div>

i am a programmer also, can you list me the steps please

---

<div class="post-metadata">

**Author:** ![Patch](https://avatars.discourse-cdn.com/v4/letter/p/a183cd/32.png) [@Patch](https://forum.manager.io/u/Patch)\
**Post date:** [July 13, 2021, 8:53am UTC](https://forum.manager.io/t/add-extra-column-to-theme/36040/4 "2021-07-13T08:53:10Z")

</div>

> [@haneefa](#):
>
> i am a programmer

Then practice the art rather than ask someone else to do the programming for you.

> [@haneefa](#):
>
> can you list me the steps please

That is programming.

---

<div class="post-metadata">

**Author:** ![haneefa](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/haneefa/32/29304_2.png) [@haneefa](https://forum.manager.io/u/haneefa)\
**Post date:** [July 13, 2021, 1:53pm UTC](https://forum.manager.io/t/add-extra-column-to-theme/36040/5 "2021-07-13T13:53:26Z")

</div>

any one know what is the code to get tax value in theme

 {% for row in table.rows %} {% for cell in row.cells %}

```
        <td class="text-{{ table.columns[forloop.index0].align }} border-start" style="padding: 5px 10px; {% if table.columns[forloop.index0].nowrap %}; white-space: nowrap; width: 80px{% endif %}">{{ cell.text | newline_to_br }}</td>
        {% if forloop.last == true %}
         <td class="text-{{ table.columns[forloop.index0].align }} border-start" style="padding: 5px 10px; {% if table.columns[forloop.index0].nowrap %}; white-space: nowrap; width: 80px{% endif %}"></td>
        <td class="text-{{ table.columns[forloop.index0].align }} border-start" style="padding: 5px 10px; {% if table.columns[forloop.index0].nowrap %}; white-space: nowrap; width: 80px{% endif %}"></td>
        <td class="text-{{ table.columns[forloop.index0].align }} border-start{% if forloop.last == true %} border-end{% endif %}" style="padding: 5px 10px; {% if table.columns[forloop.index0].nowrap %}; white-space: nowrap; width: 80px{% endif %}"></td>
     
       {% endif %}
        
        {% endfor %}
    </tr>

```

---

<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:** [July 13, 2021, 4:01pm UTC](https://forum.manager.io/t/add-extra-column-to-theme/36040/6 "2021-07-13T16:01:17Z")

</div>

That really depends on what structure you have for your tax codes and what is your naming system for the tax codes.

But you need to first assign a variable `i` to the tax column index and use that with conditional logic to get the tax rate from the value in `row.cells[i]` let’s call it `r`.

You also need to assign a variable `j` to the taxable amount column index and get the value in `row.cells[j]` let’s call it `base`.

Later you can calculate the value for the tax amount by `{ base | times: r}`.

But that’s not enough, you probably need to do something about the loops over `table.rows` and `row.cells` because inserting columns in between will mess up the indexes. You will either have to do some conditional logic which is the most efficient route or rebuild the table arrays in case you need to simplify the loops.

Also, you need to consider the scenario where `amounts are tax inclusive` is checked, because that will change how you calculate the whole thing.

It’s not a small job to ask for free. But maybe if you do more progress, others might be able to improve or debug it for you.

I would get cracking on it if I were you. 😀

---

<div class="post-metadata">

**Author:** ![Doronto](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/doronto/32/32376_2.png) [@Doronto](https://forum.manager.io/u/Doronto)\
**Post date:** [July 13, 2021, 7:38pm UTC](https://forum.manager.io/t/add-extra-column-to-theme/36040/7 "2021-07-13T19:38:17Z")

</div>

😀

---

<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:** [July 5, 2026, 8:19pm UTC](https://forum.manager.io/t/add-extra-column-to-theme/36040/8 "2026-07-05T20:19:25Z")

</div>

Uncategorized topics older than 3 years with no recent activity
