-
Notifications
You must be signed in to change notification settings - Fork 7.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(CRM): Sales Pipeline Analytics Report and Opportunity Summary by Sales Stage Report #26639
feat(CRM): Sales Pipeline Analytics Report and Opportunity Summary by Sales Stage Report #26639
Conversation
erpnext/crm/report/opportunity_summary_by_sales_stage/opportunity_summary_by_sales_stage.py
Outdated
Show resolved
Hide resolved
erpnext/crm/report/opportunity_summary_by_sales_stage/opportunity_summary_by_sales_stage.py
Outdated
Show resolved
Hide resolved
erpnext/crm/report/opportunity_summary_by_sales_stage/opportunity_summary_by_sales_stage.py
Outdated
Show resolved
Hide resolved
erpnext/crm/report/opportunity_summary_by_sales_stage/opportunity_summary_by_sales_stage.py
Show resolved
Hide resolved
|
||
if self.filters.get("data_based_on") == "Number": | ||
for data in self.query_result: | ||
for count in range(0,8): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for i, value in enumerate(values):
erpnext/crm/report/opportunity_summary_by_sales_stage/opportunity_summary_by_sales_stage.js
Outdated
Show resolved
Hide resolved
erpnext/crm/report/opportunity_summary_by_sales_stage/opportunity_summary_by_sales_stage.js
Outdated
Show resolved
Hide resolved
erpnext/crm/report/opportunity_summary_by_sales_stage/opportunity_summary_by_sales_stage.js
Outdated
Show resolved
Hide resolved
erpnext/crm/report/opportunity_summary_by_sales_stage/opportunity_summary_by_sales_stage.py
Outdated
Show resolved
Hide resolved
erpnext/crm/report/opportunity_summary_by_sales_stage/opportunity_summary_by_sales_stage.py
Outdated
Show resolved
Hide resolved
erpnext/crm/report/opportunity_summary_by_sales_stage/opportunity_summary_by_sales_stage.py
Outdated
Show resolved
Hide resolved
erpnext/crm/report/opportunity_summary_by_sales_stage/opportunity_summary_by_sales_stage.py
Show resolved
Hide resolved
erpnext/crm/report/opportunity_summary_by_sales_stage/opportunity_summary_by_sales_stage.py
Outdated
Show resolved
Hide resolved
erpnext/crm/report/opportunity_summary_by_sales_stage/opportunity_summary_by_sales_stage.py
Outdated
Show resolved
Hide resolved
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed within a week if no further activity occurs, but it only takes a comment to keep a contribution alive :) Also, even if it is closed, you can always reopen the PR when you're ready. Thank you for contributing. |
Keep Alive |
erpnext/crm/report/opportunity_summary_by_sales_stage/opportunity_summary_by_sales_stage.py
Outdated
Show resolved
Hide resolved
erpnext/crm/report/opportunity_summary_by_sales_stage/opportunity_summary_by_sales_stage.py
Outdated
Show resolved
Hide resolved
32f365f
to
d31b164
Compare
c91a5a4
to
171640e
Compare
b5b0e09
to
7f5ff69
Compare
9a92f30
to
d31c778
Compare
3e6e4b1
to
0f25145
Compare
- smaller functions - variable and function naming
12f87e9
to
19dff71
Compare
898cf19
to
057b28f
Compare
… Sales Stage Report (frappe#26639) * feat: Sales Pipeline Analytics Report * fix: sider Issues and added tests * fix: Semgrep Issue * feat: Opportunity Summary by Sales Stage Report * fix: add some checks and tests * fix: sider issues and test * fix: additional checks for error handling and minor changes * fix: remove unused conditions * fix: Changes mentioned on PR * fix: currency conversions and other changes * fix: remove unused imports * fix: correction for failing test case * fix: recorrected failing test case * fix: sider issues and resolve test case errors * fix: rewrite query using query builder * fix: test case changes * fix: sider fixes and other changes * fix: clear data before running test * fix: test case fixed * refactor: code formatting - smaller functions - variable and function naming * refactor: improve code formatting * fix: linter issues * fix: linter issues * fix: change indentation to tabs * fix: linter issues * fix: naming, code formatting * fix: quarterly values not showing up in Sales Pipeline Analytics * fix: typo in tests Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
|
||
self.convert_to_base_currency() | ||
|
||
dataframe = pandas.DataFrame.from_records(self.query_result) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mohammedyusufshaikh @ruchamahabal lets stop using this module.
It's a crutch to use pandas (millions of lines of dependency) for something that can be done in 5-10 line for loop 😅
Sales Pipeline Analytics
The following report will provide a count of opportunities or amounts that will be earned by the opportunities on a monthly or quarterly basis and also provides filters to funnel the data. This report is a forecast based on the Expected Closing Date and Opportunity Amount / Count.
Source of Truth: Opportunity doctype
Columns: Based on Frequency (Monthly -> Months, Quarterly -> Quarters)
Filters:
Opportunity Summary by Sales Stage
A report to show a summary of opportunities by Sales Stages.
Source of Truth: Opportunity doctype
Columns: Sales Stages (master)
Filters:
no-docs
(Docs will be added once versioning for v14 is done in the wiki documentation app)