Skip to main content

AIR Order Item Mapping (Table 51339)

The AIR Order Item Mapping table determines which Item is used on sales order lines when processing an AIR booking. Each row maps a combination of product type, region, service type, web origin, and voucher flag to a booking item and a service fee item.

Page

Accessible via AIR Item Mapping page (search for "AIR Item Mapping" in Business Central). You can also enter mappings directly in this page instead of importing via config package.

Primary Key Structure

Field IDField NameData TypeValues
1Product TypeEnumOther, Flight, GroundTransport, Train, Hotel, CarRental
2RegionEnumDomestic, Nordic, NordicNonEU, Europe, EuropeNonEU, International
3Service TypeEnumBooking, Void, Exchange, Refund
4Is From WebBooleanTrue if booked via online tool, False if booked by agent
5Plus VoucherBooleanTrue if the line includes a voucher component

Item Fields

Field IDField NameData TypeDescription
6Booking Item NoCode[20]Item used for the main booking line (flight, hotel, car rental, etc.). Must reference a valid Item
7Service Fee Item NoCode[20]Item used for the service fee line associated with this booking. Must reference a valid Item
8Booking Item DescriptionTextRead-only — auto-populated from the Item table
9Service Fee Item DescriptionTextRead-only — auto-populated from the Item table

How It Works

When the system processes an AIR booking and creates a sales order line:

  1. It determines the Product Type from the booking segment (Flight, Hotel, CarRental, etc.)
  2. It determines the Region from the flight route or destination country (using the AIR Region on Country/Region)
  3. It knows the Service Type from the AIR file type (Booking, Void, Exchange, Refund)
  4. It checks Is From Web based on the booking source
  5. It checks Plus Voucher based on whether a voucher is being created
  6. It looks up the matching row and uses the Booking Item and Service Fee Item for the sales lines

Example Configuration

Product TypeRegionService TypeIs From WebPlus VoucherBooking ItemService Fee Item
FlightDomesticBookingNoNoFLIGHT-DOMSVC-FEE-DOM
FlightDomesticBookingYesNoFLIGHT-DOM-WEBSVC-FEE-DOM
FlightNordicBookingNoNoFLIGHT-NORSVC-FEE-NOR
FlightEuropeBookingNoNoFLIGHT-EURSVC-FEE-EUR
FlightInternationalBookingNoNoFLIGHT-INTSVC-FEE-INT
FlightDomesticRefundNoNoFLIGHT-DOM-REFSVC-FEE-DOM
HotelDomesticBookingNoNoHOTEL-DOMSVC-FEE-DOM
HotelDomesticBookingNoYesHOTEL-DOM-VSVC-FEE-DOM
HotelEuropeBookingNoNoHOTEL-EURSVC-FEE-EUR
CarRentalDomesticBookingNoNoCAR-DOMSVC-FEE-DOM
GroundTransportDomesticBookingNoNoGROUND-DOMSVC-FEE-DOM

Config Package Notes

  • This is a multi-row table — create rows for all combinations that the customer uses
  • The number of rows depends on:
    • Which product types the customer handles (flights only? flights + hotels? all types?)
    • How many regions they need to distinguish
    • Whether they differentiate web vs. agent bookings
    • Whether they use vouchers
  • All referenced Items must exist before importing this table

Planning the Mapping

To determine which rows are needed, answer these questions:

  1. Which product types does the customer sell? (Flight, Hotel, Car Rental, Ground Transport, Train)
  2. Does the customer need different items per region? (e.g., domestic vs. international flights)
  3. Does the customer differentiate web bookings? (different items for online vs. agent-booked)
  4. Does the customer use vouchers? (if yes, do voucher bookings use different items?)
  5. Does the customer handle refunds/exchanges/voids? (these may need different items)
caution

If a booking is processed and no matching Item Mapping row is found, the system will raise an error. Make sure all expected combinations are covered before go-live.