Allow to mark time spent not to be accounted #943
Labels
ready ✅
You can work on this!
topic: contracts
All the stuff related to the contracts
topic: ticketing
All the stuff related to the tickets
Milestone
Problem
Agents may spend time for trivial tasks. In these cases, we not always want to account this time on a contract.
Solution
Allow commercials to mark a time spent as not accountable.
Specifications
Add a boolean field to the
TimeSpent
entity:mustBeUnaccounted
, false by default.Add a checkbox to the
App\Form\TimeSpentForm
labeled as "Mark this time as not to be accounted".If the checkbox is checked, then make sure to unaccount the TimeSpent using the
App\Service\ContractTimeAccounting::unaccountTimeSpents()
method.In
App\Service\ContractTimeAccounting::accountTimeSpents()
, skip the TimeSpents withmustBeUnaccounted = true
.Estimated time
1 day
The text was updated successfully, but these errors were encountered: