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 #2567

Merged

Conversation

UmakanthKaspa
Copy link
Contributor

@UmakanthKaspa UmakanthKaspa 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

Copy link
Member

@ruchamahabal ruchamahabal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ruchamahabal ruchamahabal merged commit aa8aac3 into frappe:develop Jan 2, 2025
1 check passed
mergify bot pushed a commit that referenced this pull request Jan 2, 2025
ruchamahabal pushed a commit that referenced this pull request Jan 2, 2025
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))
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.

Issue: AttributeError in get_weekday During Shift Schedule Assignment
2 participants