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

Invoicing rate report #182

Open
wants to merge 97 commits into
base: feature/3489-workload-report-period-average-etc
Choose a base branch
from

Conversation

jeppekroghitk
Copy link
Contributor

@jeppekroghitk jeppekroghitk commented Dec 17, 2024

Link to ticket

2597

Description

This PR builds upon #183 and #184 and introduces a new report containing essentially a summary of what Worklog Report provides, to give a detailed overview of billable hours, percentage of billed hours, as well as the team averages.

Screenshot of the result

N/A

Checklist

  • My code is covered by test cases.
  • My code passes our test (all our tests).
  • My code passes our static analysis suite.
  • My code passes our continuous integration process.

@jeppekroghitk jeppekroghitk changed the base branch from develop to feature/2597-billable-report-expansion December 17, 2024 12:24
@jeppekroghitk jeppekroghitk force-pushed the feature/2597-add-workload-summary-report branch 2 times, most recently from 889d76f to 5cc53d4 Compare December 18, 2024 11:16
@jeppekroghitk jeppekroghitk mentioned this pull request Jan 2, 2025
4 tasks
@jeppekroghitk jeppekroghitk requested a review from tuj January 2, 2025 08:59
@jeppekroghitk jeppekroghitk force-pushed the feature/2597-add-workload-summary-report branch 2 times, most recently from 2e06e3c to 7883be8 Compare January 2, 2025 12:00
@jeppekroghitk jeppekroghitk changed the base branch from feature/2597-billable-report-expansion to feature/3489-workload-report-period-average-etc January 2, 2025 12:01
templates/worker/index.html.twig Outdated Show resolved Hide resolved
src/Entity/Issue.php Outdated Show resolved Hide resolved
src/Model/Reports/InvoicingRateReportWorker.php Outdated Show resolved Hide resolved
src/Service/InvoicingRateReportService.php Outdated Show resolved Hide resolved
$workerProjects = [];

foreach ($periods as $period) {
// Add current period match-point (current week-number, month-number etc.)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add some more explanation about why it should be 53 when not the current year.

@jeppekroghitk jeppekroghitk force-pushed the feature/3489-workload-report-period-average-etc branch 3 times, most recently from 377b748 to f0f0e4e Compare January 3, 2025 15:05
@jeppekroghitk jeppekroghitk force-pushed the feature/2597-add-workload-summary-report branch from dc3b7bf to b312ec8 Compare January 3, 2025 15:43
@jeppekroghitk jeppekroghitk requested a review from tuj January 6, 2025 08:35
@tuj tuj added the enhancement New feature or request label Jan 6, 2025
CHANGELOG.md Outdated
@@ -368,10 +370,7 @@ complete process.
* Updated to authorization code flow.
* Changed worklog save button styling to be sticky.

[Unreleased]: https://github.com/itk-dev/economics/compare/2.5.1...HEAD
[2.5.1]: https://github.com/itk-dev/economics/compare/2.5.0...2.5.1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2.5.1, 2.5.0, 2.4.3 should not be removed

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the file

src/Service/InvoicingRateReportService.php Outdated Show resolved Hide resolved
src/Service/InvoicingRateReportService.php Outdated Show resolved Hide resolved
src/Service/InvoicingRateReportService.php Outdated Show resolved Hide resolved
src/Service/InvoicingRateReportService.php Outdated Show resolved Hide resolved
src/Service/InvoicingRateReportService.php Outdated Show resolved Hide resolved
src/Service/InvoicingRateReportService.php Outdated Show resolved Hide resolved
@jeppekroghitk jeppekroghitk requested a review from tuj January 6, 2025 08:57
@@ -58,6 +58,8 @@ public function getWorkloadReport(int $year, PeriodTypeEnum $viewPeriodType = Pe
$currentPeriodReached = false;
$expectedWorkloadSum = 0;
$loggedHoursSum = 0;
$periodSums = [];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$periodSums and $periodCounts are not used in the file

@jeppekroghitk jeppekroghitk requested a review from tuj January 6, 2025 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants