fix: description not fetched in sales order analytics report (#29254)

This commit is contained in:
mergify[bot]
2022-01-12 13:31:07 +05:30
committed by GitHub
parent e05ad8ed10
commit f4a031d94b

View File

@@ -67,7 +67,8 @@ def get_data(conditions, filters):
(soi.billed_amt * IFNULL(so.conversion_rate, 1)) as billed_amount,
(soi.base_amount - (soi.billed_amt * IFNULL(so.conversion_rate, 1))) as pending_amount,
soi.warehouse as warehouse,
so.company, soi.name
so.company, soi.name,
soi.description as description
FROM
`tabSales Order` so,
`tabSales Order Item` soi
@@ -179,6 +180,12 @@ def get_columns(filters):
"options": "Item",
"width": 100
})
columns.append({
"label":_("Description"),
"fieldname": "description",
"fieldtype": "Small Text",
"width": 100
})
columns.extend([
{