Skip to main content

AIR Posting Setup (Table 51301)

The AIR Posting Setup table defines which G/L Accounts are used when posting sales orders created from AIR bookings. Each row maps a specific combination of business posting group, product type, booking type, payment method, and card type to a set of accounts.

Page

Accessible via AIR Posting Setup page (search for "AIR Posting Setup" in Business Central).

note

All setup tables have dedicated pages in Business Central. For smaller datasets or initial setup, entering data directly in the UI may be more practical than building a config package. Config packages are most useful when you have many rows to import or want a repeatable setup across environments.

Primary Key Structure

The table uses a composite primary key with 5 fields. The system finds the most specific matching row when posting.

Field IDField NameData TypeValues
1Gen. Bus. Posting GroupCode[20]References standard BC Gen. Business Posting Group
2AIR Product TypeEnumOther, Flight, GroundTransport, Train, Hotel, CarRental
3AIR Booking TypeEnum(blank), BSP, UCCCF, Ghost, Voucher, Confirmation
4Payment MethodEnum(blank), Card, Invoice
5Card TypeEnumNone, FirstCard, Diners

Account Fields

Field IDField NameData TypeDescription
10Sales AccountCode[20]G/L Account for sales revenue. Required for all rows
11Purchase AccountCode[20]G/L Account for purchases. Used with Confirmation booking type (for vendor netting)
12Markup AccountCode[20]G/L Account for markup revenue (when markup is applied to a booking)
13Service Fee AccountCode[20]G/L Account for service fee revenue

All account fields reference the G/L Account table.

How Matching Works

When the system needs to post a booking line, it searches for a Posting Setup row that matches the line's attributes. The matching uses the key fields in this priority:

  1. Exact match on all 5 key fields
  2. If no exact match, the system tries progressively less specific combinations (with blank values acting as wildcards)

This means you can create:

  • Specific rules: e.g., Gen. Bus. Posting Group = "DOMESTIC", Product Type = Flight, Booking Type = BSP, Payment = Card, Card Type = FirstCard → specific accounts
  • General fallback rules: e.g., Gen. Bus. Posting Group = "DOMESTIC", Product Type = Flight, all other fields blank → default accounts for domestic flights

Example Configuration

Gen. Bus. Post. GroupProduct TypeBooking TypePaymentCard TypeSales Acc.Markup Acc.Service Fee Acc.
DOMESTICFlight(blank)(blank)None301030153020
DOMESTICFlight(blank)CardFirstCard301030153020
DOMESTICHotel(blank)(blank)None303030353040
DOMESTICHotelVoucher(blank)None303030353040
DOMESTICHotelConfirmation(blank)None303030353040
EUROPEFlight(blank)(blank)None311031153120
EUROPEHotel(blank)(blank)None313031353140

Config Package Notes

  • This is a multi-row table — include all rows needed for the customer's posting rules
  • The number of rows depends on how granular the customer's accounting needs to be
  • At minimum, create one row per Product Type per Gen. Bus. Posting Group
  • Add more specific rows (by Booking Type, Payment Method, Card Type) only when different accounts are needed

Common Pitfalls

caution
  • Missing rows: If no matching Posting Setup row is found during booking processing, the system will raise an error. Make sure all expected combinations are covered.
  • Blank vs. specific: A row with blank Booking Type, Payment Method, and Card Type acts as a catch-all for that Product Type + Posting Group combination. Make sure you have catch-all rows for common scenarios.
  • G/L Accounts must exist: All referenced G/L Account numbers must exist in the chart of accounts before importing this table.