Skip to content

Half-day can be selected on holidays/excluded days #3331

@erpchampions

Description

@erpchampions

Information about bug

Steps to Reproduce:

  1. Ensure Sunday is marked as holiday in Holiday List
  2. Create Leave Application for with a Sunday date in the leave period
  3. Check "Half Day" checkbox
  4. Expected: Validation error or prevention
  5. Actual: Half-day allowed on holiday

Impact: Users can create invalid half-day applications on non-working days
Related: Leave Application doctype validation

E.g. 7th Dec (Sunday) to 10th December = 3 Days, as expected with Sunday not counted.
Image

Half-day can select 7th/December and thus half-day is adjusted - not expected.

Image

Module

HR

Version

Frappe Framework: v15.72.5 (HEAD)
ERPNext: v15.67.0 (HEAD)
Frappe HR: v15.47.5 (HEAD)

Installation method

FrappeCloud

Relevant log output / Stack trace / Full Error Message.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions