Versions Compared

Key

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

...

FunctionScriptPNR Example
Profile Approver Email//Profile Approver Email
var an=UserPnrData.UserBooking.PreTripApprovalInfo.ProfileApproverEmail;

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

Pending

// Output PTA Pending
if (UserPnrData.UserBooking.PreTripApprovalInfo.CurrentApprovalState=="WAITING_FOR_APPROVAL")

{out.print("P:PTA - PENDING" );}

Approved

// Output PTA Approved
if (UserPnrData.UserBooking.PreTripApprovalInfo.CurrentApprovalState=="APPROVED")

{out.print("P:PTA - APPROVED" );}



Declined

// Output PTA Declined
if (UserPnrData.UserBooking.PreTripApprovalInfo.CurrentApprovalState=="DECLINED")

{out.print("P:PTA - DECLINED" );}



Expired

// Output PTA Expired

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

{out.print("P:PTA - EXPIRED" );}

...