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: calculate leaves for months passed even when policy assignment is based on custom range #1697

Merged
merged 8 commits into from
Jun 12, 2024

Conversation

Jeevansyriac
Copy link
Contributor

@Jeevansyriac Jeevansyriac commented Apr 22, 2024

issue: When we assign a leave policy without selecting "based on" (DOJ/Leave Period) then earned leave count shows as 0

@Jeevansyriac
Copy link
Contributor Author

#1644

@Jeevansyriac
Copy link
Contributor Author

@ruchamahabal

@Jeevansyriac
Copy link
Contributor Author

@ruchamahabal can you please check

@ruchamahabal ruchamahabal self-assigned this Apr 23, 2024
@Jeevansyriac
Copy link
Contributor Author

@ruchamahabal Any update?

@Jeevansyriac
Copy link
Contributor Author

@ruchamahabal

@Jeevansyriac
Copy link
Contributor Author

@ruchamahabal any update?

@ruchamahabal ruchamahabal changed the title fix: remove condition( if not self.assignment_based_on:) fix: calculate leaves for months passed when policy assignment is based on custom range Jun 12, 2024
@ruchamahabal ruchamahabal changed the title fix: calculate leaves for months passed when policy assignment is based on custom range fix: calculate leaves for months passed even when policy assignment is based on custom range Jun 12, 2024
@ruchamahabal
Copy link
Member

Unrelated testcase failure. Merging

@ruchamahabal ruchamahabal merged commit 4adf500 into frappe:develop Jun 12, 2024
9 of 10 checks passed
mergify bot pushed a commit that referenced this pull request Jun 12, 2024
…s based on custom range (#1697)

* fix: remove condition( if not self.assignment_based_on:)

* chore: pre-commit run

* fix: test case

* chore: pre_commit_run

* chore: fix test name

---------

Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
(cherry picked from commit 4adf500)
mergify bot pushed a commit that referenced this pull request Jun 12, 2024
…s based on custom range (#1697)

* fix: remove condition( if not self.assignment_based_on:)

* chore: pre-commit run

* fix: test case

* chore: pre_commit_run

* chore: fix test name

---------

Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
(cherry picked from commit 4adf500)
ruchamahabal pushed a commit that referenced this pull request Jun 12, 2024
…s based on custom range (backport #1697) (#1884)

* fix: remove condition( if not self.assignment_based_on:)

* chore: pre-commit run

* fix: test case

* chore: pre_commit_run

* chore: fix test name

---------

Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
(cherry picked from commit 4adf500)

Co-authored-by: Jeevan syriac <95610320+Jeevansyriac@users.noreply.github.com>
ruchamahabal pushed a commit that referenced this pull request Jun 12, 2024
…s based on custom range (backport #1697) (#1885)

* fix: remove condition( if not self.assignment_based_on:)

* chore: pre-commit run

* fix: test case

* chore: pre_commit_run

* chore: fix test name

---------

Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
(cherry picked from commit 4adf500)

Co-authored-by: Jeevan syriac <95610320+Jeevansyriac@users.noreply.github.com>
frappe-pr-bot pushed a commit that referenced this pull request Jun 12, 2024
## [14.28.5](v14.28.4...v14.28.5) (2024-06-12)

### Bug Fixes

* calculate leaves for months passed even when policy assignment is based on custom range (backport [#1697](#1697)) ([#1884](#1884)) ([4b2312d](4b2312d))
* **Salary Slip:** remove company filter from employee (backport [#1873](#1873)) ([#1876](#1876)) ([e9dc0b1](e9dc0b1))
* **Salary Structure Assignment:** Preview Salary Slip date (backport [#1869](#1869)) ([#1878](#1878)) ([f735482](f735482))
* **Shift Assignment:** type error while comparing dates during computation of previous/next shift (backport [#1839](#1839)) ([#1882](#1882)) ([37578e6](37578e6))
frappe-pr-bot pushed a commit that referenced this pull request Jun 12, 2024
## [15.22.2](v15.22.1...v15.22.2) (2024-06-12)

### Bug Fixes

* calculate leaves for months passed even when policy assignment is based on custom range (backport [#1697](#1697)) ([#1885](#1885)) ([6e22a2a](6e22a2a))
* disabled Link field ([77f27e1](77f27e1))
* frappe-ui version ([c4e5808](c4e5808))
* make link field value non-mandatory ([3964609](3964609))
* render normal Autocomplete for link fields with predefined options ([00228f2](00228f2))
* **Salary Slip:** remove company filter from employee (backport [#1873](#1873)) ([#1877](#1877)) ([afef6e3](afef6e3))
* **Salary Structure Assignment:** Preview Salary Slip date (backport [#1869](#1869)) ([#1879](#1879)) ([9437b85](9437b85))
* **Shift Assignment:** type error while comparing dates during computation of previous/next shift (backport [#1839](#1839)) ([#1883](#1883)) ([1fb427c](1fb427c))
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.

None yet

2 participants