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: correct date handling for get_weekday in shift schedule assignment (backport #2567) #2573

Merged

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jan 2, 2025

Description

This PR fixes an issue where get_weekday was passed a string instead of a datetime.date, causing errors during shift schedule assignment. The fix converts strings to datetime.date using getdate.


Related Issue

Closes #2565

Before Fix

before.webm

After Fix

after.webm

This is an automatic backport of pull request #2567 done by [Mergify](https://mergify.com).

@mergify mergify bot requested a review from ruchamahabal as a code owner January 2, 2025 12:00
@ruchamahabal ruchamahabal merged commit 8e9882d into version-15-hotfix Jan 2, 2025
7 of 8 checks passed
frappe-pr-bot pushed a commit that referenced this pull request Jan 8, 2025
## [15.37.2](v15.37.1...v15.37.2) (2025-01-08)

### Bug Fixes

* correct date handling for get_weekday in shift schedule assignment (backport [#2567](#2567)) ([#2573](#2573)) ([8e9882d](8e9882d))
* **CTC:** `amount_exempted_from_income_tax` only considers last deduction item (exempted from IT), not all (backport [#2568](#2568)) ([#2570](#2570)) ([2fac99d](2fac99d))
* skip patch if previous doctype doesn't exist (backport [#2571](#2571)) ([#2572](#2572)) ([bc4436b](bc4436b))
@frappe-pr-bot
Copy link
Collaborator

🎉 This PR is included in version 15.37.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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.

3 participants