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

TimeLog : ne pas toujours supprimer lors de onShiftInvalidated #723

Merged
merged 7 commits into from
Feb 3, 2023

Conversation

raphodn
Copy link
Member

@raphodn raphodn commented Jan 27, 2023

Quoi ?

Dans certains cas, on souhaite garder une trâce de l'invalidation d'un créneau dans le passé, et ne pas supprimer complètement le log associé

Modifications apportées :

  • renommé TimeLog::TYPE_SHIFT en TimeLog::TYPE_SHIFT_VALIDATED
  • nouveau TimeLog::TYPE_SHIFT_INVALIDATED
  • nouvelle fonction Shift.getIsFuture()
  • modifications de TimeLogEventListener.onShiftInvalidated() pour gérer différents cas

@raphodn raphodn self-assigned this Jan 27, 2023
@raphodn raphodn requested a review from petitalb January 27, 2023 10:15
@raphodn raphodn changed the title TimeLog : ne pas nécessairement supprimer lors de l'invalidation d'un créneau TimeLog : ne pas toujours supprimer lors de l'invalidation d'un créneau Jan 27, 2023
@raphodn raphodn changed the title TimeLog : ne pas toujours supprimer lors de l'invalidation d'un créneau TimeLog : ne pas toujours supprimer lors de onShiftInvalidated Jan 27, 2023
@raphodn raphodn force-pushed the raphodn/time-log-shift-validate-now branch from df35db7 to 019aa4c Compare January 31, 2023 08:57
Base automatically changed from raphodn/time-log-shift-validate-now to master January 31, 2023 09:01
@raphodn raphodn force-pushed the raphodn/time-log-shift-invalidated branch from 7ca2564 to a5630e9 Compare January 31, 2023 09:04
@raphodn raphodn force-pushed the raphodn/time-log-shift-invalidated branch from a5630e9 to a6a7e88 Compare February 1, 2023 12:51
@raphodn raphodn force-pushed the raphodn/time-log-shift-invalidated branch from 769b35c to 70a814c Compare February 1, 2023 14:43
@raphodn raphodn merged commit 00de90d into master Feb 3, 2023
@raphodn raphodn deleted the raphodn/time-log-shift-invalidated branch February 3, 2023 11:32
raphodn added a commit that referenced this pull request Feb 26, 2023
quot17 pushed a commit to quot17/gestion-compte that referenced this pull request Mar 28, 2023
…n-grenoble#723)

* Add comment on onShiftFreed

* cleanup ShiftInvalidatedEvent

* Add new type TYPE_LOG_INVALIDATED

* Create ShiftInvalidate TimeLogs in specific cases

* Cleanup. clarify difference with use_card_reader_to_validate_shifts

* Cleanup membership. Enrich comment. Fix missing variable $member in src/AppBundle/EventListener/TimeLogEventListener.php

---------

Co-authored-by: Albin Petit <[email protected]>
quot17 pushed a commit to quot17/gestion-compte that referenced this pull request Mar 28, 2023
OursDesCavernes pushed a commit to Les400Coop/gestion-compte that referenced this pull request Jan 20, 2024
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.

Lors d'actions sur les créneaux passés, ne pas supprimer les TimeLog correspondants
2 participants