# Different custom invoice fields

**URL:** <https://forum.manager.io/t/different-custom-invoice-fields/10765>\
**Category:** Uncategorized\
**Created:** [July 20, 2017, 1:15pm UTC](https://forum.manager.io/t/different-custom-invoice-fields/10765 "2017-07-20T13:15:52Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![aspenforest](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/aspenforest/32/9630_2.png) [@aspenforest](https://forum.manager.io/u/aspenforest)\
**Post date:** [July 20, 2017, 1:15pm UTC](https://forum.manager.io/t/different-custom-invoice-fields/10765/1 "2017-07-20T13:15:52Z")

</div>

Is there a way to design an invoice in such a way that the first custom field displays the title and the second custom field does not?

Currently, the custom field code for official themes is:

```
 {% for field in custom_fields %}
 <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 %}

```

But, it applies this same pattern to all custom fields which have been defined for customers.  
Is it possible to use custom field position identifiers to apply different designs to each one? e.g.

```
 {% for field in custom_fields at position 1 %}
 <tr>
     <td colspan="99">
         <div style="font-weight: bold; padding-top: 20px">{{ field.label }} {{ field.text}}</div>
     </td>
</tr>
{% endfor %}

{% for field in custom_fields at position 2 %}
 <tr>
     <td colspan="99">
         <div style="font-weight: bold; padding-top: 20px">{{ field.text}}</div>
     </td>
</tr>
{% endfor %}

```

If not, is there another way to implement this?

---

<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:** [July 20, 2017, 1:24pm UTC](https://forum.manager.io/t/different-custom-invoice-fields/10765/2 "2017-07-20T13:24:35Z")

</div>

custom fields are identified by their headers and not by their positions. you need to use `if` statement to get your desired result.

---

<div class="post-metadata">

**Author:** ![aspenforest](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/aspenforest/32/9630_2.png) [@aspenforest](https://forum.manager.io/u/aspenforest)\
**Post date:** [July 20, 2017, 1:26pm UTC](https://forum.manager.io/t/different-custom-invoice-fields/10765/3 "2017-07-20T13:26:36Z")

</div>

Thank you. I thought as much when I read about how the themes are implemented.  
For future reference, anybody who also needs this functionality, you need to learn [Liquid language](https://shopify.github.io/liquid/).

---

<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:** [July 20, 2017, 1:29pm UTC](https://forum.manager.io/t/different-custom-invoice-fields/10765/4 "2017-07-20T13:29:43Z")

</div>

out of curiosity, why would you need custom fields without a heading? such data can be typed in the Notes field.

---

<div class="post-metadata">

**Author:** ![aspenforest](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/aspenforest/32/9630_2.png) [@aspenforest](https://forum.manager.io/u/aspenforest)\
**Post date:** [July 20, 2017, 1:34pm UTC](https://forum.manager.io/t/different-custom-invoice-fields/10765/5 "2017-07-20T13:34:42Z")

</div>

In Estonia, it is customary for businesses to include on their invoices their registration number

```
Reg. nr. XXXXXXX 

```

and also their bank accounts

```
Swedbank XXXXXXXXXX
SEB bank XXXXXXXXXX
Nordea bank XXXXXXXXXX

```

In the case of the registration number, we can use the custom field title for “Reg. nr.”, but nobody uses

```
Bank accounts
Swedbank XXXXXXXXXX
SEB bank XXXXXXXXXX
Nordea bank XXXXXXXXXX

```

because the title “Bank accounts” is redundant.

---

<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:** [July 20, 2017, 1:38pm UTC](https://forum.manager.io/t/different-custom-invoice-fields/10765/6 "2017-07-20T13:38:35Z")

</div>

> [@aspenforest](#):
>
> In Estonia, it is customary for businesses to include on their invoices their registration number  
> Reg. nr. XXXXXXX

you can set your registration number as a default in Manager. Go to Business Details under settings. Your registration number is the Business Identifier.

> [@aspenforest](#):
>
> and also their bank accounts  
> Swedbank XXXXXXXXXX  
> SEB bank XXXXXXXXXX  
> Nordea bank XXXXXXXXXX

this details can be entered in the Notes field and set as default too.

---

<div class="post-metadata">

**Author:** ![aspenforest](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/aspenforest/32/9630_2.png) [@aspenforest](https://forum.manager.io/u/aspenforest)\
**Post date:** [July 20, 2017, 1:46pm UTC](https://forum.manager.io/t/different-custom-invoice-fields/10765/7 "2017-07-20T13:46:27Z")

</div>

I guess I could use Business Identifier field to store the registration number, but businesses who  
are obligated to pay VAT tax must also include their VAT registration number on their invoices

```
"KMKR. XXXXXXXXXX" 

```

So it becomes

```
Business name
Address
Reg. nr.
KMKR.
Firstbank
Secondbank
Thirdbank

```

But no worries, I’ll acquaint myself with the Liquid language and sort it out later.  
I assume it won’t be that difficult to implement.

---

<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:** [July 20, 2017, 1:48pm UTC](https://forum.manager.io/t/different-custom-invoice-fields/10765/8 "2017-07-20T13:48:04Z")

</div>

Just insert all those comma separated.

For example

Reg. nr. XXXXXXX, KMKR. XXXXXXXXXX

---

<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:** [July 20, 2017, 2:24pm UTC](https://forum.manager.io/t/different-custom-invoice-fields/10765/9 "2017-07-20T14:24:00Z")

</div>

All (or almost all) fields in Manager accept HTML code. So all the different information can, in fact, be inserted into the `Business Identifier` field in Business Details under Settings. That will display without any heading.

You can, as @sharpdrivetek suggested, use `if` conditionals to leave out headings, too. Personally, I’ve found it easier to use `unless`. Here, for example, if a snippet from a slight modification of the default, _Plain_, theme that eliminates the `Notes` field heading but lets any others you may have show:

```auto
            <td colspan="99">
                <div style="font-weight: bold; padding-top: 20px; padding-bottom: 10px">{% unless field.label == 'Notes' %}{{ field.label }}{% endunless %}</div> 
                <div>{{ field.text | newline_to_br }}</div>
            </td>

```

---

<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, 3:25pm UTC](https://forum.manager.io/t/different-custom-invoice-fields/10765/10 "2023-01-18T15:25:37Z")

</div>


