Skip to content
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

Jan 1 bug fixes #90

Merged
merged 4 commits into from
Jan 1, 2025
Merged

Jan 1 bug fixes #90

merged 4 commits into from
Jan 1, 2025

Conversation

ElemarJR
Copy link
Contributor

@ElemarJR ElemarJR commented Jan 1, 2025

No description provided.

- Updated the logic for determining past months in the ForecastTable component by introducing a new `isMonthInPast` function, improving clarity and maintainability.
- Replaced direct comparisons with the current month and year to utilize the new function, ensuring accurate calculations for actual values and totals.
- Enhanced the readability of the code by consolidating date-related logic, making future modifications easier.

These changes improve the accuracy of the financial forecasting calculations and enhance the overall code structure.
- Added `workingDays` and `realizedWorkingDays` fields to the YearlyForecast GraphQL schema, improving the data model for financial forecasting.
- Updated the `resolve_yearly_forecast` function to calculate total working days and realized working days based on the current date, enhancing the accuracy of the forecast.
- Modified the frontend to display working days metrics in the Yearly Forecast 2025 component, providing users with better insights into their financial goals.

These changes improve the financial forecasting capabilities and enhance user visibility into working day metrics.
- Updated the forecast calculation logic in `forecast.py` to prevent division by zero by introducing a safe divisor for projected values, improving accuracy in financial forecasts.
- Enhanced the `ConsultantSummary` class in `revenue_tracking.py` to safely check for the presence of `by_worker` in project data, ensuring robust data handling and preventing potential errors.
- Consolidated consultant name collection logic to improve readability and maintainability.

These changes enhance the reliability of forecast calculations and improve the overall data integrity in consultant summaries.
@ElemarJR ElemarJR merged commit 8458989 into eximiaco-labs:main Jan 1, 2025
1 check passed
@ElemarJR ElemarJR deleted the Jan_1_bug_fixes branch January 1, 2025 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant