-
Notifications
You must be signed in to change notification settings - Fork 42
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
Compte épargne : décrémenter après un créneau libéré #771
Conversation
src/AppBundle/Entity/TimeLog.php
Outdated
} else { | ||
return "Créneau (non renseigné)"; | ||
} | ||
return "Créneau " . $this->getShiftString($this->shift); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Attention à ne pas déplacer la vue dans le contrôleur. C’est pas mal aussi les « macro » doctrine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Justement sur ce point précis je me dis qu'on pourrait rajouter une colonne "Créneau" dans le tableau "Compteur de temps" ça simplifierait l'affichage de la description (aka "Motif" dans le tableau)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
je vais partir sur cette option là, et revert les modifs ici
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert ici : da27b09
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
80e92a9
to
9322e4f
Compare
c71f62a
to
00d7b95
Compare
// decrement the savingTimeCount | ||
$log = $this->container->get('time_log_service')->initSavingTimeLog($member, -1 * $shift->getDuration(), $shift); | ||
$this->em->persist($log); | ||
// increment the shiftTimeCount |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…#771) * onShiftFreed: decrement time from saving * Revert display changes (remove getShiftString) * Add TYPE_SHIFT_FREED_SAVING & initShiftFreedSavingTimeLog. Update messages
…#771) * onShiftFreed: decrement time from saving * Revert display changes (remove getShiftString) * Add TYPE_SHIFT_FREED_SAVING & initShiftFreedSavingTimeLog. Update messages
Quoi ?
Lorsque un membre souhaite libérer (annuler) un créneau :
Modifications :
Captures d'écran