fix: Ordering and datatype fixes in inactive items report
This commit is contained in:
@@ -27,21 +27,20 @@ def get_columns():
|
|||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"label": _("Item Group"),
|
"label": _("Item Group"),
|
||||||
"options": "Item Group",
|
"options": "Item Group",
|
||||||
"width": 100
|
"width": 150
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "item_name",
|
"fieldname": "item_name",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"options": "Item",
|
"options": "Item",
|
||||||
"label": "Item",
|
"label": "Item",
|
||||||
"width": 100
|
"width": 150
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "Item Name",
|
"fieldname": "item_name",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Data",
|
||||||
"label": _("Item Name"),
|
"label": _("Item Name"),
|
||||||
"options": "Item",
|
"width": 150
|
||||||
"width": 100
|
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -143,7 +142,7 @@ def get_items(filters):
|
|||||||
"name": filtesr["item"]
|
"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
|
return items
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user