...
| | |
---|
PTA | Primary Approver Email 2 PNR Field Type = Remark |
Code Block |
---|
language | java |
---|
title | Primary Approver Email 2 |
---|
collapse | true |
---|
| //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
| | |
---|
PTA | Primary or Secondary Travel Approver to the PNR |
Code Block |
---|
language | java |
---|
title | PTA Approved |
---|
collapse | true |
---|
| //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:
| | |
---|
PTA | Secondary Approver skipped
|
Code Block |
---|
language | java |
---|
title | TAW Pending |
---|
collapse | true |
---|
| //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
...