Versions Compared

Key

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

...

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.

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

State - Pending/Waiting for approval

...

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);}


...