mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 17:04:47 +00:00
fix: use qb for functions
This commit is contained in:
committed by
Akhil Narang
parent
ec4d4a0d6c
commit
d40e660a52
@@ -74,7 +74,7 @@ class OpportunitySummaryBySalesStage:
|
||||
}[self.filters.get("based_on")]
|
||||
|
||||
data_based_on = {
|
||||
"Number": "count(name) as count",
|
||||
"Number": {"COUNT": "*", "as": "count"},
|
||||
"Amount": "opportunity_amount as amount",
|
||||
}[self.filters.get("data_based_on")]
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ class SalesPipelineAnalytics:
|
||||
]
|
||||
|
||||
self.data_based_on = {
|
||||
"Number": "count(name) as count",
|
||||
"Number": {"COUNT": "*", "as": "count"},
|
||||
"Amount": "opportunity_amount as amount",
|
||||
}[self.filters.get("based_on")]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user