Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Cancelling a Booking

Tag / Keyword

Secondary Tag / Keyword

Java Script

Cancel

Cancelling a booking

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

Printing Ticket Number

Tag / Keyword

Secondary Tag / Keyword

Java Script

Cancel

Printing the Ticket Number

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

Ticket Bank

Tag / Keyword

Secondary Tag / Keyword

Java Script

Cancel

Ticket Bank

\n");
}
out.print("5R$UNUSED TICKET VALUE " + UserPnrData.UserBooking.AirRemainingFunds.NonRefundAmount + "\n");
}

if (UserPnrData.UserBooking.AirRemainingFunds.Retrieve == "fail")
	out.print("5R$AIR REMAINING FUNDS - Retrieve Failure" + "\n");

}

  • No labels