Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
We found a calculation error with budget and deleted timetrackings
Steps to reproduce
- Create a new project. With the following settings
- "Price mode *": Budget per hour
- "Budget time billing *" ~Prepaid
- "Price": Leave this field empty
- Create new budget 100 hours
- Create a new task. Using that task. Add a first timetracking 125 hours.
- Notice that ERPAL automatically created a second timetracking. Which is normal and by design because the 125 hours timetracking is larger than the remaining budget 100 hours. That second timetracking reads as follow:
- Duration: 0 hour
- Billing Duration: 25 hours
- Using the same task. Add a third timetracking at 0.5 hours.
- Delete the second timetracking that was automatically created by ERPAL. The 25 hours.
- Delete both the first and third timetrackings you just created.
- Go to the project homepage. On the right side column. Into that table. Notice that "Total SUM"/available hours row now reads: 74.50 hours
- But it should read 100 hours not 74.50 hours. Because all timetracking were deleted.
Any volunteer for a patch?
The Ubertus team would be happy to contribute testing patch, quality assurance, documentation
Comments
Comment #2
FrancewhoaFor those facing the same challenge. We found a workaround. It does not prevent this issue from reoccurring in the future. And it does not fix this ticket. And it is lots of work. But on the bright side it does fix calculation issues with previous budgets.
Steps workaround