From b5c7cf077901635655c45cf45f4e7ed5b43be576 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
 <41898282+github-actions[bot]@users.noreply.github.com>
Date: Mon, 14 Aug 2023 16:28:58 +1000
Subject: [PATCH] Fix html tag in template (#5445) (#5448)

- Ensure <td> tag is closed correctly

(cherry picked from commit e7b5b145bfe5e1566080e9d6b8e67f44e872374d)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
---
 InvenTree/stock/templates/stock/item_base.html | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/InvenTree/stock/templates/stock/item_base.html b/InvenTree/stock/templates/stock/item_base.html
index be9a5b0028..4704cca24c 100644
--- a/InvenTree/stock/templates/stock/item_base.html
+++ b/InvenTree/stock/templates/stock/item_base.html
@@ -371,8 +371,9 @@
         <td>
             <a href="{% url 'so-detail' item.sales_order.id %}">{{ item.sales_order.reference }}</a>
             {% if item.sales_order.customer %}
-            - <a href="{% url 'company-detail' item.sales_order.customer.id %}">{{ item.sales_order.customer.name }}</a></td>
+            - <a href="{% url 'company-detail' item.sales_order.customer.id %}">{{ item.sales_order.customer.name }}</a>
             {% endif %}
+        </td>
     </tr>
     {% else %}
     {% if allocated_to_sales_orders %}