fix: Ordering and datatype fixes in inactive items report
diff --git a/erpnext/stock/report/inactive_items/inactive_items.py b/erpnext/stock/report/inactive_items/inactive_items.py
index 95cec7b..3aaf1ce 100644
--- a/erpnext/stock/report/inactive_items/inactive_items.py
+++ b/erpnext/stock/report/inactive_items/inactive_items.py
@@ -27,21 +27,20 @@
"fieldtype": "Link",
"label": _("Item Group"),
"options": "Item Group",
- "width": 100
+ "width": 150
},
{
"fieldname": "item_name",
"fieldtype": "Link",
"options": "Item",
"label": "Item",
- "width": 100
+ "width": 150
},
{
- "fieldname": "Item Name",
- "fieldtype": "Link",
+ "fieldname": "item_name",
+ "fieldtype": "Data",
"label": _("Item Name"),
- "options": "Item",
- "width": 100
+ "width": 150
},
{
@@ -143,7 +142,7 @@
"name": filtesr["item"]
})
- items = frappe.get_all("Item", fields=["name", "item_group", "item_name"], filters=filters_dict)
+ items = frappe.get_all("Item", fields=["name", "item_group", "item_name"], filters=filters_dict, order_by="name")
return items