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: Employee reminders #25735

Merged

Conversation

NagariaHussain
Copy link
Member

@NagariaHussain NagariaHussain commented May 17, 2021

  • New Reminders Section in HR Settings
  • Work Anniversary Reminders
  • Holiday Reminders

Screenshot 2021-08-24 at 2 55 29 PM

Show a warning in case a change in frequency of holiday reminders will lead to missing reminders for a date range:

save_freq_change.mp4

Refactoring:

  1. New employee_reminders and test_employee_reminders modules
  2. is_holiday: "Explicit is better than implicit"
  3. get_holidays_for_employee
  4. HR Settings Reminders Section
  5. Holiday Reminders on the day of the event was removed in: 836dfff

Tests:

  1. is_holiday: Previously there were no explicit tests for this function
  2. Reminder emails

no-docs (temp)

@NagariaHussain NagariaHussain changed the title Employee reminders feat: Employee reminders May 17, 2021
@NagariaHussain NagariaHussain marked this pull request as ready for review May 18, 2021 07:00
@NagariaHussain NagariaHussain marked this pull request as draft May 18, 2021 07:03
@NagariaHussain NagariaHussain marked this pull request as ready for review May 20, 2021 09:20
@ruchamahabal ruchamahabal self-assigned this May 21, 2021
@NagariaHussain
Copy link
Member Author

😎 Keep alive!

@stale stale bot removed the inactive label Aug 4, 2021
@stale
Copy link

stale bot commented Aug 19, 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 19, 2021
@stale stale bot closed this Aug 22, 2021
@stale stale bot removed the inactive label Aug 22, 2021
@pateljannat pateljannat added the backport develop instructs mergify to frontport PR to develop branch label Aug 24, 2021
@pateljannat pateljannat merged commit 24b2a31 into frappe:version-13-hotfix Aug 24, 2021
frappe-pr-bot pushed a commit to frappe-pr-bot/erpnext that referenced this pull request Aug 24, 2021
* feat: Add reminders section to HR Settings

* refactor: Extract generic function for getting Employees

* feat: Employee Work Anniversary Reminder

* feat: Daily Holiday Reminder

* fix: Unnecessary params and replace [] with .get()

* test: Daily Holiday Reminders

* test: is_holiday basic tests

* refactor: Move employee reminders code to separate module

* feat: Add advance reminder to HR settings

* feat: Advance Holiday Reminders

* refactor: get_holidays_for_employee

* feat: Email holiday reminders in advance + tests

* fix: Remove unused import

* refactor: HR Setting Reminder Section

* refactor: Remove Daily Holiday Reminders feat

* feat: Reminder miss warning

* fix: Failing test and function name change

* chore: Add patch for field rename

* chore: Rename frequency label

* fix: Failing patch test

* fix: sider and removed description of fields

* fix: email alignment

Co-authored-by: pateljannat <pateljannat2308@gmail.com>
Co-authored-by: Jannat Patel <31363128+pateljannat@users.noreply.github.com>
(cherry picked from commit 24b2a31)
pateljannat added a commit that referenced this pull request Aug 24, 2021
* feat: Add reminders section to HR Settings

* refactor: Extract generic function for getting Employees

* feat: Employee Work Anniversary Reminder

* feat: Daily Holiday Reminder

* fix: Unnecessary params and replace [] with .get()

* test: Daily Holiday Reminders

* test: is_holiday basic tests

* refactor: Move employee reminders code to separate module

* feat: Add advance reminder to HR settings

* feat: Advance Holiday Reminders

* refactor: get_holidays_for_employee

* feat: Email holiday reminders in advance + tests

* fix: Remove unused import

* refactor: HR Setting Reminder Section

* refactor: Remove Daily Holiday Reminders feat

* feat: Reminder miss warning

* fix: Failing test and function name change

* chore: Add patch for field rename

* chore: Rename frequency label

* fix: Failing patch test

* fix: sider and removed description of fields

* fix: email alignment

Co-authored-by: pateljannat <pateljannat2308@gmail.com>
Co-authored-by: Jannat Patel <31363128+pateljannat@users.noreply.github.com>
(cherry picked from commit 24b2a31)

Co-authored-by: Mohammad Hussain Nagaria <34810212+NagariaHussain@users.noreply.github.com>
Co-authored-by: Jannat Patel <31363128+pateljannat@users.noreply.github.com>
@chechani
Copy link

Excellent ! Should be extended to Contacts

asoral pushed a commit to asoral/erpnext that referenced this pull request Nov 12, 2021
* feat: Add reminders section to HR Settings

* refactor: Extract generic function for getting Employees

* feat: Employee Work Anniversary Reminder

* feat: Daily Holiday Reminder

* fix: Unnecessary params and replace [] with .get()

* test: Daily Holiday Reminders

* test: is_holiday basic tests

* refactor: Move employee reminders code to separate module

* feat: Add advance reminder to HR settings

* feat: Advance Holiday Reminders

* refactor: get_holidays_for_employee

* feat: Email holiday reminders in advance + tests

* fix: Remove unused import

* refactor: HR Setting Reminder Section

* refactor: Remove Daily Holiday Reminders feat

* feat: Reminder miss warning

* fix: Failing test and function name change

* chore: Add patch for field rename

* chore: Rename frequency label

* fix: Failing patch test

* fix: sider and removed description of fields

* fix: email alignment

Co-authored-by: pateljannat <pateljannat2308@gmail.com>
Co-authored-by: Jannat Patel <31363128+pateljannat@users.noreply.github.com>
(cherry picked from commit cae0028)

Co-authored-by: Mohammad Hussain Nagaria <34810212+NagariaHussain@users.noreply.github.com>
Co-authored-by: Jannat Patel <31363128+pateljannat@users.noreply.github.com>
@michellealva
Copy link
Contributor

@NagariaHussain can the reminders be only sent to active employees? I guess right now it is sent even to the inactive ones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport develop instructs mergify to frontport PR to develop branch HR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants