Versions Compared

Key

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

...

Tag/keyword
Secondary tag/keywords
Script
PTA

Primary Approver Email 2

PNR Field Type =

Remark


Code Block
languagejava
titlePrimary Approver Email 2
collapsetrue
//PTA - PRIMARY APPROVER EMAIL

var an=UserPnrData.UserBooking.PreTripApprovalInfo.ProfileApproverEmail;

if(((UserPnrData.DataType=="new")||(UserPnrData.DataType=="hold")) && (an!=undefined))
{out.print("5UD3 " + an);}   


Primary or Secondary Travel Approver to the PNR

This script will fire when the Primary or Profiled Travel Approver has approved the trip

Tag/keyword
Secondary tag/keywords
Script
PTA

Primary or Secondary Travel 

Approver to the PNR


Code Block
languagejava
titlePTA Approved
collapsetrue
//PTA Travel Approver
//Primary
 
var ap=UserPnrData.UserBooking.PreTripApprovalInfo.ProfileApproverEmail;
 
ap=ap.toUpperCase();
ap=ap.replace(/@/g,"\@");
 
if(((UserPnrData.UserBooking.PreTripApprovalInfo.CurrentApprovalState="APPROVED")&&(UserPnrData.UserBooking.PreTripApprovalInfo.StateChangedBy== "PROFILE_APPROVER")&&(ap!="")))
 
{out.print("5.S*UD146 " + ap);}


PNR not approved by Primary/Profiled Travel Approver and skips over the Secondary Approver:


Tag/keyword
Secondary tag/keywords
Script
PTA

Secondary Approver skipped 



Code Block
languagejava
titleTAW Pending
collapsetrue
//PTA Travel Approver
//Secondary -
 
var ap=UserPnrData.UserBooking.PreTripApprovalInfo.SecondaryApproverEmail;
 
ap=ap.toUpperCase();
ap=ap.replace(/@/g,"\@");
 
if((UserPnrData.UserBooking.PreTripApprovalInfo.StateChangedBy=="SECONDARY_APPROVER")&&(ap!="")){out.print("5.S*UD146 " + ap);}  



TAW - Pending/Waiting for Approval

...