Project

General

Profile

Actions

Improvement #27508

closed

Feature #22066: Train Module Integration | HaramainTrain || Search to ticketing and my booking

Train | Valdidation is missing in passport or nationality expiry in PAX page

Added by Rahul P K 2 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Functionality
Target version:
Al Maqaam - Pending features
Start date:
09/22/2025
Due date:
09/29/2025
% Done:

100%

Estimated time:
2:30 h
Spent time:
remarks:

nil

DB Changes:

nil

Keys & Permissions:

nil

Areas Affected:

nil

Files Changed:

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

train validation issue.png (555 KB) train validation issue.png Rahul P K, 09/19/2025 09:58 AM
Screenshot (895).png (306 KB) Screenshot (895).png Gopika Shaji, 09/26/2025 01:58 PM
train_passport_validation.png (226 KB) train_passport_validation.png Athul A, 09/29/2025 10:44 AM
Screenshot (1083).png (313 KB) Screenshot (1083).png Gopika Shaji, 10/20/2025 11:50 AM
Actions #1

Updated by Vivek V 2 months ago

  • Due date set to 09/22/2025
  • Status changed from New to Assigned
  • Assignee set to Athul A
  • Target version set to Pending features
  • Start date changed from 09/19/2025 to 09/22/2025
  • Estimated time set to 2:00 h
Actions #2

Updated by Athul A 2 months ago

  • Status changed from Assigned to In Progress
Actions #3

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

Actions #4

Updated by Gopika Shaji about 2 months ago

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.

Actions #5

Updated by Athul A about 2 months ago

  • Status changed from Assigned to In Progress
Actions #6

Updated by Athul A about 2 months ago

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

Actions #7

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
Actions #9

Updated by Gopika Shaji about 1 month ago

The issue has been fixed. The travel date I selected is October 30, and the expiry date is now displayed as October 31.

Actions

Also available in: Atom PDF