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"); 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" ); 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" ); out.print("5R$BASE FARE " + UserPnrData.UserBooking.AirBooking.AirFare.FareInfo.BaseFare + "\n"); out.print("5R$TOTAL TAXES " + UserPnrData.UserBooking.AirBooking.AirFare.FareInfo.TotalTax + "\n"); out.print("5R$ORIGINAL FARE " + UserPnrData.UserBooking.PreviousAirBooking.AirFare.FareInfo.TotalFare + "\n"); 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"); } |