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"); var ticket = UserPnrData.UserBooking.ExistingTicketsInfo.ExistingTickets.TicketInfo.TicketNumber; out.print("5R$TICKET NUMBER " + ticket + "\n"); 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"); out.print("5R$BASE FARE " + UserPnrData.UserBooking.AirBooking.AirFare.FareInfo.BaseFare + "\n"); out.print(" 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"); } } } |