Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
maxLevel3
stylenone

...

Introduction

These scripts reflect sample documentation that can be added to the GDS PNR as a trip requiring pre-trip approval makes its way through the process.

In order to ensure that the entries that need to be added AFTER the initial PNR creation are triggered when applicable, be sure to especially note the PNR Field Type in the Secondary tag/keywords column.  If a script is noted with PNR Field Type = Pre Trip Approval, but is not configured as such, the corresponding entry will not be added to the PNR.

The following scripts can be added to two different areas: Custom PNR and Queue/Delivery Options

Custom PNR scripts

The following scripts are added in Services Tab > Agency Configuration > Custom PNR

State - Pending/Waiting for approval

...

Tag/keyword
Secondary tag/keywords
Script
PTA

TAW - approved

PNR Field Type = Pre Trip Approval



Code Block
languagejava
titleTAW - Approved
collapsetrue
//TAW - PTA - PENDING

if (UserPnrData.UserBooking.PreTripApprovalInfo.CurrentApprovalState=="APPROVED")

with(UserPnrData.UserBooking.AgencyTransactionDate){
out.print("7TAWABCD" + Day + Month + "101/ETKT REQ");}   


Queue/Delivery Options

Queue delivery - ticketing queue block

This script is added to a Queue Delivery Option - Block itineraries that are triggered for pre-trip approval from passing to the normal ticketing queue (as they would if pre-trip approval was not enabled). This script allows itineraries that do not trigger pre-trip approval to pass to the normal ticketing queue as usual, but stops itineraries that trigger pre-trip approval from going to ticketing before they are approved.

Note: The following scripts are added in Services Tab>Agency Configuration>Queue/Delivery Options

Tag/keyword
Secondary tag/keywords
Script
PTATicket Queue


Code Block
languagejava
titleTicket Queue Delivery Block
collapsetrue
var ifToPrint="true";
 
{var pta=UserPnrData.UserBooking.PreTripApprovalInfo.CurrentApprovalState;
if (pta=="WAITING_FOR_APPROVAL") {
          ifToPrint="false";
      }
out.print(ifToPrint);}


...