...
Task | Process / Helpful Hint |
Custom Field Collection | Configure pending queue under Custom PNR
The below example Is for a Sabre client, script written to line 159 follows the screen shot. You can adjust the output based on the GDS you are writing to PNR Script: //Ticketing Field for PTA Pending Approval function zeroPad(num,count) { var numZeropad = num + ''; while(numZeropad.length < count) { numZeropad = "0" + numZeropad; } return numZeropad; } if ((UserPnrData.DataType=="new" || UserPnrData.DataType=="purchase_hold")&&(UserPnrData.UserBooking.PreTripApprovalInfo.CurrentApprovalState=="WAITING_FOR_APPROVAL")){with (UserPnrData.UserBooking.AgencyTransactionDate) { var day=UserPnrData.UserBooking.AgencyTransactionDate.Day; day=zeroPad(day,2); out.print("7TAW" + day + Month + "/HOLD");}} |
Approved, Ticketed/Declined and Expired Queues | Programmed under Agency Configurations
|
Setting Passenger Name Record (PNR) Configuration
...
Task | Process / Helpful Hint |
Creating Custom Field Collection |
|
Creating Custom Fields |
|
Use Case JavaScripts |
|
Example Script |
//Alaska and Hawaii
if((UserPnrData.UserSession.AirSearch.FlightLeg[0].DestinationAirportCode=="ANC")|| (UserPnrData.UserSession.AirSearch.FlightLeg[0].DestinationAirportCode=="FAI") || (UserPnrData.UserSession.AirSearch.FlightLeg[0].DestinationAirportCodee=="HOM")|| (UserPnrData.UserSession.AirSearch.FlightLeg[0].DestinationAirportCode=="JNU") || (UserPnrData.UserSession.AirSearch.FlightLeg[0].DestinationAirportCode=="HNL") || (UserPnrData.UserSession.AirSearch.FlightLeg[0].DestinationAirportCode=="KOA") || (UserPnrData.UserSession.AirSearch.FlightLeg[0].DestinationAirportCode=="LIH") || (UserPnrData.UserSession.AirSearch.FlightLeg[0].DestinationAirportCode=="ITO"))
{out.print("true");}else {out.print("false");} |
Add to Custom Field Set | Once you have completed programming PTA collection, you will then need to add it to the custom field set
|
...
Task | Process / Helpful Hint |
Designating Approver Status Manually |
|
Assigning Manager Manually to Traveler Profile |
|
Upload Approver |
|
pre-trip Offline booked PNRs
Task | Process / Helpful Hint |
Steps |
|
Pre-trip approval messaging
...