# How to remove Item Code from the Layout

**URL:** <https://forum.manager.io/t/how-to-remove-item-code-from-the-layout/37122>\
**Category:** Uncategorized\
**Created:** [September 22, 2021, 1:53am UTC](https://forum.manager.io/t/how-to-remove-item-code-from-the-layout/37122 "2021-09-22T01:53:51Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![danowagroup](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/danowagroup/32/19710_2.png) [@danowagroup](https://forum.manager.io/u/danowagroup)\
**Post date:** [September 22, 2021, 1:53am UTC](https://forum.manager.io/t/how-to-remove-item-code-from-the-layout/37122/1 "2021-09-22T01:53:51Z")

</div>

A company doesn’t want to show the Item Codes on the Sales and Purchase Invoices, just a Description, any idea how to remove the Item Codes from the Layouts?

---

<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 22, 2021, 2:04am UTC](https://forum.manager.io/t/how-to-remove-item-code-from-the-layout/37122/2 "2021-09-22T02:04:58Z")

</div>

Use a custom theme.

---

<div class="post-metadata">

**Author:** ![danowagroup](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/danowagroup/32/19710_2.png) [@danowagroup](https://forum.manager.io/u/danowagroup)\
**Post date:** [September 22, 2021, 2:05am UTC](https://forum.manager.io/t/how-to-remove-item-code-from-the-layout/37122/3 "2021-09-22T02:05:59Z")

</div>

Yes indeed but how to remove the items?

---

<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 22, 2021, 2:08am UTC](https://forum.manager.io/t/how-to-remove-item-code-from-the-layout/37122/4 "2021-09-22T02:08:25Z")

</div>

If you don’t have the programming skills, you will need to hire a local programmer to write the theme.

---

<div class="post-metadata">

**Author:** ![danowagroup](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/danowagroup/32/19710_2.png) [@danowagroup](https://forum.manager.io/u/danowagroup)\
**Post date:** [September 22, 2021, 2:11am UTC](https://forum.manager.io/t/how-to-remove-item-code-from-the-layout/37122/5 "2021-09-22T02:11:32Z")

</div>

Yes true but unfortunately not many ppl have knowledge of Liquid coding…

Like other solutions Manager should be flexible in terms of designing layouts, this is a real challenge and several businesses need that…

---

<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:** [September 22, 2021, 5:59am UTC](https://forum.manager.io/t/how-to-remove-item-code-from-the-layout/37122/6 "2021-09-22T05:59:56Z")

</div>

why not simply include the item code in the `Item name` field itself?  
batch updating the inventory items will be a quick solution.

---

<div class="post-metadata">

**Author:** ![danowagroup](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/danowagroup/32/19710_2.png) [@danowagroup](https://forum.manager.io/u/danowagroup)\
**Post date:** [September 22, 2021, 8:27am UTC](https://forum.manager.io/t/how-to-remove-item-code-from-the-layout/37122/7 "2021-09-22T08:27:12Z")

</div>

@sharpdrivetek thanks for the idea actually the co. having codes came from their suppliers and they need to select them during the invoicing, however, don’t want to show them to the customers on the invoice.

---

<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:** [September 22, 2021, 8:35am UTC](https://forum.manager.io/t/how-to-remove-item-code-from-the-layout/37122/8 "2021-09-22T08:35:02Z")

</div>

item codes when included in the item name will still serve the same purpose in your use case.  
`Code001 - NameFruits` entered in the `Item name` field will still be available to select as Code001 in the transaction line. there is no change to work procedure in this case.

---

<div class="post-metadata">

**Author:** ![danowagroup](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/danowagroup/32/19710_2.png) [@danowagroup](https://forum.manager.io/u/danowagroup)\
**Post date:** [September 22, 2021, 11:43am UTC](https://forum.manager.io/t/how-to-remove-item-code-from-the-layout/37122/10 "2021-09-22T11:43:50Z")

</div>

> [@Mark](#):
>
> `{% if forloop.first %}{% continue %}{% endif %}` after the following code lines:  
> `{% for column in table.columns %}` (2 occurrences)  
> `{% for cell in row.cells %}`

Thank you all for your comments, let’s try this!

---

<div class="post-metadata">

**Author:** ![danowagroup](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/danowagroup/32/19710_2.png) [@danowagroup](https://forum.manager.io/u/danowagroup)\
**Post date:** [September 22, 2021, 11:59am UTC](https://forum.manager.io/t/how-to-remove-item-code-from-the-layout/37122/11 "2021-09-22T11:59:24Z")

</div>

@Mark  
Great, it worked, however, it has an effect on the last column, any idea how to rectify it?

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

---

<div class="post-metadata">

**Author:** ![Mark](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@Mark](https://forum.manager.io/u/Mark)\
**Post date:** [September 22, 2021, 12:12pm UTC](https://forum.manager.io/t/how-to-remove-item-code-from-the-layout/37122/12 "2021-09-22T12:12:01Z")

</div>

Send me the complete custom theme code or paste it here using preformatted text (Ctrl+E) and I (and I know some other members will do so too) will have a look at it.

---

<div class="post-metadata">

**Author:** ![danowagroup](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/danowagroup/32/19710_2.png) [@danowagroup](https://forum.manager.io/u/danowagroup)\
**Post date:** [September 22, 2021, 12:18pm UTC](https://forum.manager.io/t/how-to-remove-item-code-from-the-layout/37122/13 "2021-09-22T12:18:15Z")

</div>

@Mark sure will be sending you in pvt.

---

<div class="post-metadata">

**Author:** ![Mark](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@Mark](https://forum.manager.io/u/Mark)\
**Post date:** [September 22, 2021, 12:20pm UTC](https://forum.manager.io/t/how-to-remove-item-code-from-the-layout/37122/14 "2021-09-22T12:20:54Z")

</div>

Maybe it’s better to paste it here so some other forum members can have a look at it too and others can benefit from it 'cos that’s the goal of this forum.

---

<div class="post-metadata">

**Author:** ![danowagroup](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/danowagroup/32/19710_2.png) [@danowagroup](https://forum.manager.io/u/danowagroup)\
**Post date:** [September 22, 2021, 12:25pm UTC](https://forum.manager.io/t/how-to-remove-item-code-from-the-layout/37122/15 "2021-09-22T12:25:45Z")

</div>

Yes sharing is caring, here you go, header and footer removed due to customer specific info:

```
		</header>
	</br>
</head>
<table style="padding: 20px">
	<thead>
		<tr>
			<td colspan="99">
				<table style="margin-bottom: 5px; padding-top: 5px">
					<tr>
						<td style="padding-left: 20px; padding-top: 5px; padding-bottom: 5px; width: 150px">
							<div style="text-ALIGN:left;background-color:#FFFFFFF;font-weight: bold;color:#000000; font-size: 32px; white-space: nowrap;text-transform: uppercase;">{{ title }}</div>
							<p style="color:#ffffff;">.</p>
						</td>
						<tr></tr>
						<tr></tr>
						<tr>
							<td colspan="99">
								<div style="border-top-width: 1px; border-color: #cfd1d3; background-color: #cfd1d3; color: #ffffff"></div>
							</td>
						</tr>
					</tr>
				</table>
				<table style="margin-bottom: 5px">
					<tr>
						<td style="padding-left: 30px">
							<div style="font-weight: bold">
								<p>Client: {{ recipient.name }}</p>
							</div>
							<div>{{ recipient.address | newline_to_br }}</div>
							<div>{{ recipient.identifier }}</div>
						</td>
						<td style="padding-right: 30px; font-size: 15px; text-align: right">

```

{% for field in fields %}  
{% if (field.label != ‘Invoice number’) %}{% continue %}{% endif %}

```
							<div>
								<b>{{ field.label }}:</b> {{ field.text }}
							</div>

```

{% endfor %}  
{% for field in fields %}  
{% if (field.label == ‘Invoice number’) %}{% continue %}{% endif %}

```
							<div>
								<b>{{ field.label }}:</b> {{ field.text }}
							</div>

```

{% endfor %}

```
						</td>
					</tr>
				</table>
				<tr>
					<td colspan="99">
						<div style="border-top-width: 1px; border-color: #cfd1d3; background-color: #cfd1d3; color: #ffffff"></div>
					</td>
				</tr>
				<td style="font-weight: bold; padding: 5px 10px; text-align: center; border-left-width: 1px; border-bottom-width: 1px; border-top-width: 1px; width: 1px">S.No.</td>
            {% for column in table.columns %}            
            {% if forloop.first %}{% continue %}{% endif %}
				<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>
        {% for row in table.rows %}
        
			<tr>
				<td style="padding: 5px 10px; text-align: center; border-left-width: 1px; width: 1px">{{ forloop.index0 | plus:1 }}</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>
				<td style="border-bottom-width: 1px; border-left-width: 1px">&nbsp;</td>
        {% for column in table.columns %}            
        {% if forloop.first %}{% continue %}{% endif %}    
				<td style="border-bottom-width: 1px; border-left-width: 1px{% if forloop.last == true %}; border-right-width: 1px{% endif %}">&nbsp;</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 total.emphasis == true %}; font-weight: bold{% endif %}">{{ total.text }}</td>
			</tr>
        {% endfor %}
        {% 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 %}
    
			<tr>
				<td colspan="99">
            {% if emphasis.text != null and emphasis.positive %}
            
					<div style="text-align: center; margin-top: 40px">
						<span style="color: #006400; border-width: 5px; border-color: #006400; padding: 10px; font-size: 20px">{{ emphasis.text | upcase }}</span>
					</div>
            {% endif %}
            {% if emphasis.text != null and emphasis.negative %}
            
					<div style="text-align: center; margin-top: 40px">
						<span style="color: #FF0000; border-width: 5px; border-color: #FF0000; padding: 10px; font-size: 20px">{{ emphasis.text | upcase }}</span>
					</div>
            {% endif %}
        
				</td>
			</tr>
		</tbody>
	</table>
	<footer >

```

style=“margin-top:200px;”\>

---

<div class="post-metadata">

**Author:** ![Mark](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@Mark](https://forum.manager.io/u/Mark)\
**Post date:** [September 22, 2021, 12:44pm UTC](https://forum.manager.io/t/how-to-remove-item-code-from-the-layout/37122/16 "2021-09-22T12:44:03Z")

</div>

That’s a weird copy/paste… But as I thought so, you forgot to paste the code `{% if forloop.first %}{% continue %}{% endif %}` after the code line `{% for cell in row.cells %}`

---

<div class="post-metadata">

**Author:** ![danowagroup](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/danowagroup/32/19710_2.png) [@danowagroup](https://forum.manager.io/u/danowagroup)\
**Post date:** [September 22, 2021, 12:49pm UTC](https://forum.manager.io/t/how-to-remove-item-code-from-the-layout/37122/17 "2021-09-22T12:49:29Z")

</div>

Those were added already that’s why the item codes were removed (as per earlier screenshots), however it effects the Total column only…

---

<div class="post-metadata">

**Author:** ![Mark](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@Mark](https://forum.manager.io/u/Mark)\
**Post date:** [September 22, 2021, 1:00pm UTC](https://forum.manager.io/t/how-to-remove-item-code-from-the-layout/37122/18 "2021-09-22T13:00:13Z")

</div>

> [@danowagroup](#):
>
> Those were added already

Well, in the code you’ve pasted I don’t see it:  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/3X/c/5/c53450059e5d49424f0d4a5e51935c8a6cd5bf04.png)

The code of the total column misses minus:1 after size:  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/3X/f/8/f8fb1bb282d393cd7ad11c3d8c166a5df1a71740.png)

It should be: `{{ table.columns | size | minus:1 }}`

---

<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:** [September 22, 2021, 1:06pm UTC](https://forum.manager.io/t/how-to-remove-item-code-from-the-layout/37122/19 "2021-09-22T13:06:58Z")

</div>

> [@Mark](#):
>
> The code of the total column misses minus:1 after size:

because @danowagroup is using the modified plain theme provided in guides which implements the line numbers.

for the code provided in post#9 to work in the default plain theme, the above code should be  
`{{ table.columns | size | minus:2 }}`

---

<div class="post-metadata">

**Author:** ![Mark](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@Mark](https://forum.manager.io/u/Mark)\
**Post date:** [September 22, 2021, 1:28pm UTC](https://forum.manager.io/t/how-to-remove-item-code-from-the-layout/37122/20 "2021-09-22T13:28:57Z")

</div>

> [@sharpdrivetek](#):
>
> for the code provided in post#9 to work in the default plain theme, the above code should be  
> `{{ table.columns | size | minus:2 }}`

I know but the custom theme code pasted in post #15 needs `{{ table.columns | size | minus:1 }}`

---

<div class="post-metadata">

**Author:** ![danowagroup](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/danowagroup/32/19710_2.png) [@danowagroup](https://forum.manager.io/u/danowagroup)\
**Post date:** [September 22, 2021, 1:35pm UTC](https://forum.manager.io/t/how-to-remove-item-code-from-the-layout/37122/21 "2021-09-22T13:35:20Z")

</div>

Attaching the file here  
[Sales Invoice - Customized.pdf](https://forum.manager.io/uploads/short-url/lBP60n7qSQCgjBuM6x8UNKczERv.pdf) (118.6 KB)

[Next page](https://forum.manager.io/t/how-to-remove-item-code-from-the-layout/37122.md?page=2)
