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

fix: Update leave allocation after submit #25975

Merged

Conversation

pateljannat
Copy link
Contributor

@pateljannat pateljannat commented Jun 7, 2021

  1. Previously, users could not modify the number of leaves once a Leave Allocation was submitted.
  2. In scenarios where the user had made a mistake in the leaves allocated, there was no easy way to rectify it.
  3. The only way was to cancel and amend the Leave Allocation, but this was not feasible if there were approved Leave applications for this allocation.
  4. Now, the users can update the New Leaves Allocated field after submit as well.

Screenshot 2021-06-08 at 6 57 14 PM

  1. Leave Ledger Entries will be created accordingly for the modified leaves.
  2. If the user makes the number of new leaves allocated lesser than the leaves applications approved for that period, a validation message will be shown.

Screenshot 2021-06-08 at 6 56 58 PM

@ruchamahabal ruchamahabal self-assigned this Jun 23, 2021
@ruchamahabal ruchamahabal merged commit ca8c3b9 into frappe:develop Jun 24, 2021
asoral pushed a commit to asoral/erpnext that referenced this pull request Nov 12, 2021
* update leave allocation after submit

* fix: leave allocation update after submit

* fix: circular dependency

* fix: replaced update with submit in tests

* fix: replaced update with submit in tests

* fix: updating total leaves allocated
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.

None yet

4 participants