Skip to content

Commit

Permalink
Merge pull request #2273 from openedx/iahmad/ENT-9584
Browse files Browse the repository at this point in the history
fix: fixed query for monthly impact report command
  • Loading branch information
irfanuddinahmad authored Nov 4, 2024
2 parents 225d449 + 7ff2a03 commit 27d3be3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ Unreleased
----------
* nothing unreleased

[4.31.1]
--------
* fix: fixed query for monthly_impact_report command.

[4.31.0]
--------
* feat: add new endpoint to unlink the logged in user.
Expand Down
2 changes: 1 addition & 1 deletion enterprise/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Your project description goes here.
"""

__version__ = "4.31.0"
__version__ = "4.31.1"
8 changes: 4 additions & 4 deletions enterprise/management/commands/monthly_impact_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -865,17 +865,17 @@
FROM (
SELECT
acc.integration_enterprise_uuid__c as uuid,
MAX(opp.contract_end_date__c) latest_contract_end_date
acc.integration_enterprise_uuid_c as uuid,
MAX(opp.contract_end_date_c) latest_contract_end_date
FROM
salesforce_prod_pii.opportunity as opp
LEFT JOIN
salesforce_prod_pii._account as acc
ON
opp.accountid = acc.id
opp.account_id = acc.id
WHERE
-- only closed won contracts
opp.stagename = 'Closed Won'
opp.stage_name = 'Closed Won'
GROUP BY
1
HAVING
Expand Down

0 comments on commit 27d3be3

Please sign in to comment.