Improvement #27508
closedFeature #22066: Train Module Integration | HaramainTrain || Search to ticketing and my booking
Train | Valdidation is missing in passport or nationality expiry in PAX page
nil
nil
nil
nil
resources\js\components\Train\TrainPaxPage.jsx
resources\js\components\Train\TrainPaxForm.jsx
Description
Searched a train and proceeded to PAX page then the passport and nationality expiry dates can be selected before travel date. should restrict expiry date before travel date like in flight.
Attached screen shot for ref.
Files
Updated by Athul A 2 months ago
- Status changed from In Progress to Fixed not Tested
- % Done changed from 0 to 100
- remarks updated (diff)
- DB Changes updated (diff)
- Keys & Permissions updated (diff)
- Areas Affected updated (diff)
- Files Changed updated (diff)
Searched a train and proceeded to PAX page then the passport and nationality expiry dates can be selected before travel date. should restrict expiry date before travel date like in flight. --fixed--
Updated by Gopika Shaji about 2 months ago
- File Screenshot (895).png Screenshot (895).png added
- Status changed from Fixed not Tested to Assigned
After searching for a train and proceeding to the PAX page, the passport and nationality expiry dates can still be selected as dates before the travel date, which should not be allowed.
In the flight module, this validation is correctly handled — expiry dates before the travel date cannot be selected . However, in the train module, although past dates are restricted, the travel date itself (e.g., Oct 1 if traveling on Oct 1) can still be selected as the expiry date , which should not be allowed.
Passport and nationality expiry dates should be strictly after the travel date
Please fix this issue.
Updated by Athul A about 2 months ago
- Status changed from Assigned to In Progress
Updated by Athul A about 2 months ago
- File train_passport_validation.png train_passport_validation.png added
- Status changed from In Progress to Fixed not Tested
In the flight module, this validation is correctly handled — expiry dates before the travel date cannot be selected . However, in the train module, although past dates are restricted, the travel date itself (e.g., Oct 1 if traveling on Oct 1) can still be selected as the expiry date , which should not be allowed.
Passport and nationality expiry dates should be strictly after the travel date ---fixedd---scrennshot attached
Updated by Vivek V about 2 months ago
- Due date changed from 09/22/2025 to 09/29/2025
- Estimated time changed from 2:00 h to 2:30 h
Updated by Fathima Farzana about 1 month ago
cannot check due to http://redmine2023.caxita.ca/issues/28584
Updated by Gopika Shaji about 1 month ago
- File Screenshot (1083).png Screenshot (1083).png added
- Status changed from Fixed not Tested to Closed
The issue has been fixed. The travel date I selected is October 30, and the expiry date is now displayed as October 31.