Skip to content

Commit

Permalink
fix training statistic to not include FORTBILDUNG when counting time …
Browse files Browse the repository at this point in the history
…for project related trainings
  • Loading branch information
KlausRicharz committed Jul 21, 2024
1 parent d7109fb commit 10b35b9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public interface TrainingRepository extends CrudRepository<Timereport, Long> {
@Query("""
select new org.tb.dailyreport.domain.TrainingInformation(t.employeecontract.id, sum(t.durationhours), sum(t.durationminutes)) from Timereport t
where t.referenceday.refdate >= :begin and t.referenceday.refdate <= :end
and t.employeecontract.id = :employeecontractId and t.training = true
and t.employeecontract.id = :employeecontractId and t.training = true and t.suborder.sign != 'FORTBILDUNG'
group by t.employeecontract.id
""")
Optional<TrainingInformation> getProjectTrainingTimesByDatesAndEmployeeContractId(long employeecontractId, LocalDate begin, LocalDate end);
Expand Down

0 comments on commit 10b35b9

Please sign in to comment.