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:
- Go to the “Create Loan” page.
- Set the Loan Date to a later date.
- 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:

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:
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: