Skip to content

Loan saved with invalid date range #2

Description

@IbrahimElhomsany1

Title: Loan saved with return date earlier than loan date

Description:
System allows creating a loan where the return date is before the loan date, leading to invalid loan periods.

Steps to Reproduce:

  1. Go to the “Create Loan” page.
  2. Set the Loan Date to a later date.
  3. Set the Return Date to an earlier date than the Loan Date and click Save.

Expected Result:
Validation error shown and loan is not saved.

Actual Result:
Loan is saved successfully with an invalid (negative) duration.
Severity: Medium
Priority: P2

Status: New

Environment: Chrome 129, Windows 11

Screenshot / Evidence:

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions