Versions Compared

Key

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

...

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

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


Queue Delivery - Pending/Waiting for Approval

This script is added to a Queue Delivery OptionAdd this script to a queue delivery option if you'd like to drop on a queue PNRS which triggered the pre-trip approval process.which have been sent for Pre-Trip Approval

Tag/keyword
Secondary tag/keywords
Script
PTAPending Approval


Code Block
languagejava
titlePending Approval
collapsetrue
var ifToPrint="false";

 
{var pta=UserPnrData.UserBooking.PreTripApprovalInfo.CurrentApprovalState;
if (pta=="WAITING_FOR_APPROVAL") {
          ifToPrint="true";
      }
out.print(ifToPrint);}


...