diff --git a/erpnext/buying/report/purchase_order_analysis/purchase_order_analysis.py b/erpnext/buying/report/purchase_order_analysis/purchase_order_analysis.py index a5c464910de..6a18cd95881 100644 --- a/erpnext/buying/report/purchase_order_analysis/purchase_order_analysis.py +++ b/erpnext/buying/report/purchase_order_analysis/purchase_order_analysis.py @@ -84,7 +84,7 @@ def get_data(conditions, filters): and po.docstatus = 1 {0} GROUP BY poi.name - ORDER BY po.transaction_date ASC + ORDER BY po.transaction_date ASC, poi.item_code ASC """.format( conditions ),