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

Fix forecast #95

Merged
merged 3 commits into from
Jan 4, 2025
Merged

Fix forecast #95

merged 3 commits into from
Jan 4, 2025

Conversation

ElemarJR
Copy link
Contributor

@ElemarJR ElemarJR commented Jan 4, 2025

No description provided.

- Updated the `compute_pre_contracted_revenue_tracking` function to set the fee to zero based on project creation and due dates, improving revenue calculation accuracy.
- Refactored the `from_base_instance` method in the `Project` model to use `model_dump()` for better data handling.
- Modified the `fetch_all_projects_json` method in the `Everhour` class to streamline project fetching, while maintaining the original `fetch_all_projects` method for backward compatibility.
- Adjusted the `due_on` field in the `Task` model to use an alias, enhancing data consistency and clarity.

These changes improve the overall functionality and accuracy of revenue tracking and project management within the application.
- Reduced the task fetch limit from 10,000 to 250 in the `fetch_project_tasks` method to optimize performance and prevent excessive data retrieval.
- Changed the `searchInClosed` parameter from a boolean to a string in the `_search_tasks_json` method for compatibility with the API.
- Updated the `due_on` field in the `Task` model to set a default value of `None`, enhancing data handling and consistency.

These changes enhance the efficiency and reliability of task management within the Everhour integration.
- Updated the `compute_pre_contracted_revenue_tracking` function to ensure accurate fee calculations based on project due dates, accommodating various date formats.
- Added logic in the `CasesRepository` to set due dates for archived tracker projects, improving project management consistency.
- Introduced the `enforce_due_on` method in the `TimeTracker` class to automatically assign due dates from tasks, enhancing task management reliability.
- Implemented a new `find_project_due_on` method to streamline due date retrieval for projects, improving overall functionality.

These changes improve the accuracy and reliability of project and revenue tracking within the application.
@ElemarJR ElemarJR merged commit e28fd8a into eximiaco-labs:main Jan 4, 2025
1 check passed
@ElemarJR ElemarJR deleted the fix_forecast branch January 4, 2025 12:49
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