Skip to content

Commit

Permalink
Minor Fix to the report
Browse files Browse the repository at this point in the history
  • Loading branch information
adityaduggal committed Jun 24, 2020
1 parent c7f72a4 commit 64770b3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ def get_data(filters):
query = """SELECT idoc.name, idoc.drawing_based_on, idoc.customer, idoc.sales_order, idoc.item,
idoc.description, idoc.remarks, idoc.docstatus
FROM `tabImportant Documents` idoc
WHERE %s"""%(conditions)
WHERE %s ORDER BY idoc.drawing_based_on, idoc.customer, idoc.items"""%(conditions)
data = frappe.db.sql(query, as_list=1)
else:
query = """SELECT idoc.name, idoc.standard_authority, idoc.standard_number, idoc.category_name,
idoc.standard_year, idoc.committee, idoc.description, idoc.remarks, idoc.docstatus
FROM `tabImportant Documents` idoc
WHERE %s"""%(conditions)
WHERE %s ORDER BY idoc.category_name, idoc.standard_authority, idoc.standard_number"""%(conditions)
data = frappe.db.sql(query, as_list=1)
return data

Expand Down

0 comments on commit 64770b3

Please sign in to comment.