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

feat: Training Event Status Update and Validations #26698

Merged
merged 5 commits into from
Aug 16, 2021

Conversation

ruchamahabal
Copy link
Member

@ruchamahabal ruchamahabal commented Jul 29, 2021

Before:

  1. On submitting the Training Feedback, the Training Event Employee status is not updated automatically.
  2. There are no validations for employees submitting feedback.
  3. On updating the training event, the status for all attendees had to be manually updated. To manually update every attendee's status is tedious.

After:

  1. On submitting the Training Feedback, the employee status in the Training Event Attendees child table is updated to "Feedback Submitted". On canceling feedback, the status is reverted to "Completed".

    training-feedback-status.mp4
  2. Added validations for Training Feedback. Training Feedback cannot be added if:
    a. Employee was Absent from the training.

    image

    b. Employee did not attend the training.

    image

  3. Training Event Status
    a. If the status is marked as Completed, then for all the attendees, the status is set as Completed, provided the employee was Present and the status is not "Feedback Submitted"
    b. If the status is marked as Scheduled, then for all the attendees, the status is marked as Open

    employee-status.mp4
  4. Added relevant tests for the same.

no-docs Basic Validations are added, which does not require documentation.

@stale
Copy link

stale bot commented Aug 13, 2021

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed within a week if no further activity occurs, but it only takes a comment to keep a contribution alive :) Also, even if it is closed, you can always reopen the PR when you're ready. Thank you for contributing.

@stale stale bot added the inactive label Aug 13, 2021
@ruchamahabal
Copy link
Member Author

ruchamahabal commented Aug 16, 2021

Unrelated POS test case failing

@ruchamahabal ruchamahabal merged commit bf75ea7 into frappe:develop Aug 16, 2021
frappe-pr-bot pushed a commit to frappe-pr-bot/erpnext that referenced this pull request Aug 16, 2021
* fix: training event employee status not updated on feedback submission

* feat: update attendees status on training event status update

* test: Training Event and Feedback

* chore: remove unused import

(cherry picked from commit bf75ea7)
ruchamahabal added a commit that referenced this pull request Aug 16, 2021
* fix: training event employee status not updated on feedback submission

* feat: update attendees status on training event status update

* test: Training Event and Feedback

* chore: remove unused import

(cherry picked from commit bf75ea7)

Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
asoral pushed a commit to asoral/erpnext that referenced this pull request Nov 12, 2021
* fix: training event employee status not updated on feedback submission

* feat: update attendees status on training event status update

* test: Training Event and Feedback

* chore: remove unused import
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant