Versions Compared

Key

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

...

Tag / Keyword

Secondary Tag / Keyword

Java Script

New New booking

PNR Field Type = Remark

if (((UserPnrData.DataType=="new")||(UserPnrData.DataType == "purchase_hold")||(UserPnrData.DataType=="change" && UserPnrData.UserBooking.HasAirBookingAdded == "true")) && (UserPnrData.UserBooking.AirBooking.BookingProvider=="SWABIZ"))

{

out.print("Line Number: 300 \n"); var wnrloc = UserPnrData.UserBooking.AirBooking.FlightLeg[0].FlightSegment[0].RecordLocator.Locator; var time = UserPnrData.User.Timestamp; out.print("5R$NEW SOUTHWEST RECLOC " + wnrloc + " " + time + "\n");

Printing a Ticket Number

Tag / Keyword

Print

Print ticket number

Secondary Tag / Keyword

Java Script

Tag / Keyword

Secondary Tag / Keyword

Java Script

Print

Print fare per leg and total fare

var ticket = UserPnrData.UserBooking.ExistingTicketsInfo.ExistingTickets.TicketInfo.TicketNumber;
out.print("5R$TICKET NUMBER " + ticket + "\n");

Printing Fare Per Leg and Total Fare

var i=0;
var numLegs=UserPnrData.UserBooking.AirBooking.FlightLeg.length();
for (i=0; i<numLegs; i++)
with (UserPnrData.UserBooking.AirBooking.FlightLeg[i])

{
out.print("5R$FARE FROM " + OriginAirportCode + " TO " + DestinationAirportCode + " " + FareInfo.TotalFare + " " + FareInfo.FareBasisCode + "\n");
}

out.print("5R$TOTAL FARE " + UserPnrData.UserBooking.AirBooking.AirFare.FareInfo.TotalFare + "\n");

Printing Base Fare and Total Tax

Java Script

Tag / Keyword

Secondary Tag / Keyword

Print

Print base fare and total tax

out.print("5R$BASE FARE " + UserPnrData.UserBooking.AirBooking.AirFare.FareInfo.BaseFare + "\n");
out.print("5

Printing all Unused Ticket Details Applied with Any Add Collect or Residual Value

Tag / Keyword

Secondary Tag / Keyword

Java Script

Print

Print unused ticket details / add collect / residual value

if (UserPnrData.UserBooking.UnusedTicketUsage.length() > 0)
{
var numTicks=UserPnrData.UserBooking.UnusedTicketUsage.length();
var i=0;
for (i=0; i<numTicks; i++)
with(UserPnrData.UserBooking.UnusedTicketUsage[i])

{
out.print("5R$APPLIED UNUSED TICKET FROM WN RLOC " + RecordLocator + " VALUED AT " + Price + "\n");
}

if (UserPnrData.UserBooking.UnusedTicketUsage[numTicks-1].TotalRemainingValue > 0) { out.print("5R$RESIDUAL OF " + UserPnrData.UserBooking.UnusedTicketUsage[numTicks-1].TotalRemainingValue + " PLACED IN UNUSED TICKET BANK" + "\n"); } else if (UserPnrData.UserBooking.UnusedTicketUsage[numTicks-1].AdditionalCollection > 0) { out.print("5R$ADD COLLECT AMOUNT " + UserPnrData.UserBooking.UnusedTicketUsage[numTicks-1].AdditionalCollection + "\n"); } else { out.print("5R$EVEN EXCHANGE" + "\n"); } }

}

...

Tag / Keyword

Secondary Tag / Keyword

Java Script

CancelCancelling a booking

PNR Field Type = Remark

if ( ( (UserPnrData.DataType=="cancel")) && (UserPnrData.UserBooking.AirBooking.BookingProvider=="SWABIZ") )
{
out.print("Line Number: 304 \n");
var wnrloc = UserPnrData.UserBooking.AirRemainingFunds.RecordLocator.Locator;
var time = UserPnrData.User.Timestamp;
out.print("5R$CANCELLED SOUTHWEST BOOKING " + time + "\n");
out.print("5R$SOUTHWEST RECLOC " + wnrloc + "\n");

...

Cancel

Printing the ticket number

Tag / Keyword

Secondary Tag / Keyword

Java Script

var ticket = UserPnrData.UserBooking.ExistingTicketsInfo.ExistingTickets.TicketInfo.TicketNumber;
out.print("5R$TICKET NUMBER " + ticket + "\n");

Printing Amount Refunded and / or Residual for Unused Ticket - Check Added for Blank Ticket Number as Well as Retrieve=Success

Tag / Keyword

Secondary Tag / Keyword

Java Script

Cancel

Printing amount refunded / residual for unused ticket

if (UserPnrData.UserBooking.AirRemainingFunds.RefundAmount > 0 && UserPnrData.UserBooking.AirRemainingFunds.Retrieve == "success")
{
out.print("5R$AMOUNT REFUNDED " + UserPnrData.UserBooking.AirRemainingFunds.RefundAmount + "\n");
}

if (UserPnrData.UserBooking.AirRemainingFunds.NonRefundAmount > 0 && UserPnrData.UserBooking.AirRemainingFunds.Retrieve == "success") { if (UserPnrData.UserBooking.AirRemainingFunds.TicketNumber!="") { out.print("5R$UNUSED TICKET " + UserPnrData.UserBooking.AirRemainingFunds.TicketNumber + " PLACED IN UNUSE

...

Tag / Keyword

Secondary Tag / Keyword

Java Script

ChangeChanging a booking

PNR Field Type = Remark

if ( ( (UserPnrData.DataType=="change")) && (UserPnrData.UserBooking.AirBooking.BookingProvider=="SWABIZ") && (UserPnrData.UserBooking.HasAirBookingChanged=="true") )
{
out.print("Line Number: 302 \n");
var wnrloc = UserPnrData.UserBooking.AirBooking.FlightLeg[0].FlightSegment[0].RecordLocator.Locator;
var time = UserPnrData.User.Timestamp;
out.print("5R$CHANGED SOUTHWEST BOOKING " + time + "\n");
out.print("5R$SOUTHWEST RECLOC " + wnrloc + "\n");

...

Print

Print ticket number

Tag / Keyword

Secondary Tag / Keyword

Java Script

Tag / Keyword

Secondary Tag / Keyword

Java Script

Print

Print fare per leg

var ticket = UserPnrData.UserBooking.ExistingTicketsInfo.ExistingTickets.TicketInfo.TicketNumber;
out.print("5R$TICKET NUMBER " + ticket + "\n");

// PRINTING FARE PER LEG IF AVAILABLE AND TOTAL FARE
var i=0;
var numLegs=UserPnrData.UserBooking.AirBooking.FlightLeg.length();
if (UserPnrData.UserBooking.AirBooking.FlightLeg[0].FareInfo.TotalFare > 0)
{
for (i=0; i<numLegs; i++)
with (UserPnrData.UserBooking.AirBooking.FlightLeg[i])
{
out.print("5R$FARE FROM " + OriginAirportCode + " TO " +

DestinationAirportCode + " " + FareInfo.TotalFare + " " + FareInfo.FareBasisCode + "\n");

}
}
out.print("5R$TOTAL FARE " + UserPnrData.UserBooking.AirBooking.AirFare.FareInfo.TotalFare + "\n" );

Printing Fare Per Leg if Available and Total Fare

var i=0;
var numLegs=UserPnrData.UserBooking.AirBooking.FlightLeg.length();
if (UserPnrData.UserBooking.AirBooking.FlightLeg[0].FareInfo.TotalFare > 0)
{
for (i=0; i<numLegs; i++)
with (UserPnrData.UserBooking.AirBooking.FlightLeg[i])
{
out.print("5R$FARE FROM " + OriginAirportCode + " TO " + DestinationAirportCode + " " + FareInfo.TotalFare + " " + FareInfo.FareBasisCode + "\n");
}
}
out.print("5R$TOTAL FARE " + UserPnrData.UserBooking.AirBooking.AirFare.FareInfo.TotalFare + "\n" );

Printing Base Fare and Total Tax

Secondary Tag / Keyword

Tag / Keyword

Print

Print base fare / total tax

Jave Script

out.print("5R$BASE FARE " + UserPnrData.UserBooking.AirBooking.AirFare.FareInfo.BaseFare + "\n");
out.print("5R$TOTAL TAXES " + UserPnrData.UserBooking.AirBooking.AirFare.FareInfo.TotalTax + "\n");

Printing Original Fare

Secondary Tag / Keyword

Tag / Keyword

Print

Print original fare

Java Script

Tag / Keyword

Secondary Tag / Keyword

Java Script

Print

Print unused ticket details / add collect or refund / residual value

out.print("5R$ORIGINAL FARE " + UserPnrData.UserBooking.PreviousAirBooking.AirFare.FareInfo.TotalFare + "\n");

Printing all Unused Ticket Details applied with any Add Collect or Refund and / Or Residual Value. Check Added for Retrieve = Success.

var numTicks=UserPnrData.UserBooking.UnusedTicketUsage.length();
if (numTicks > 0 && UserPnrData.UserBooking.UnusedTicketUsage[numTicks-1].AdditionalCollection > 0)
{
out.print("5R$ADD COLLECT " + UserPnrData.UserBooking.UnusedTicketUsage[numTicks-1].AdditionalCollection + "\n");

} else if ((UserPnrData.UserBooking.AirRemainingFunds.RefundAmount > 0 || UserPnrData.UserBooking.AirRemainingFunds.NonRefundAmount > 0) && UserPnrData.UserBooking.AirRemainingFunds.Retrieve == "success") { if (UserPnrData.UserBooking.AirRemainingFunds.RefundAmount > 0) out.print("5R$REFUNDED " + UserPnrData.UserBooking.AirRemainingFunds.RefundAmount + "\n"); if (UserPnrData.UserBooking.AirRemainingFunds.NonRefundAmount > 0) out.print("5R$UNUSED TICKET VALUE " + UserPnrData.UserBooking.AirRemainingFunds.NonRefundAmount + " PLACED IN UNUSED TICKET DB \n"); } else { if (UserPnrData.UserBooking.AirRemainingFunds.Retrieve == "success") out.print("5R$EVEN EXCHANGE" + "\n"); else out.print("5R$AIR REMAINING FUNDS - RETRIEVE FAILURE" + "\n"); }

...

Tag / Keyword

Secondary / Tag Keyword

Java Script

Held Held booking

PNR Field Type = Remark

if ( ( UserPnrData.DataType=="hold") && (UserPnrData.UserBooking.AirBooking.BookingProvider=="SWABIZ") )
{

out.print("Line Number: 306 \n");

var wnrloc = UserPnrData.UserBooking.AirBooking.FlightLeg[0].FlightSegment[0].RecordLocator.Locator;

var time = UserPnrData.User.Timestamp;

out.print("5R$SOUTHWEST BOOKING PUT ON HOLD "+ time + "\n"); out.print("5R$SOUTHWEST RECLOC " + wnrloc + "\n");

Printing Fare Per Leg and Total Fare

Tag / Keyword

Secondary / Tag Keyword

Java Script

Print

Print fare per leg and total fare

var i=0;
var numLegs=UserPnrData.UserBooking.AirBooking.FlightLeg.length();
for (i=0; i<numLegs; i++)
with (UserPnrData.UserBooking.AirBooking.FlightLeg[i])
{
out.print("5R$FARE FROM " + OriginAirportCode + " TO " + DestinationAirportCode + " " + FareInfo.TotalFare + " " + FareInfo.FareBasisCode + "\n");
}

out.print("5R$TOTAL FARE " + UserPnrData.UserBooking.AirBooking.AirFare.FareInfo.TotalFare + "\n");

// PRINTING BASE FARE AND TOTAL TAX

out.print("5R$BASE FARE " + UserPnrData.UserBooking.AirBooking.AirFare.FareInfo.BaseFare + "\n");
out.print("5R$TOTAL TAXES " + UserPnrData.UserBooking.AirBooking.AirFare.FareInfo.TotalTax + "\n");}