Business Purpose
The dm_tni mart captures billable transaction/tariff line items ("Transaction & Invoicing" charges) raised against objects (AWBs, ULDs, flights) — the source detail that invoice lines are ultimately generated from.
Core Business Logic & Rules
- Tariff-driven: Each transaction is priced against a
tariff_code/tariff_group, with amounts expressed in both the shed's base currency and the transaction currency. - Object linkage: Every transaction is tied to an
object_isn/object_type/object_mode, connecting the charge back to the specific AWB, ULD, or flight that incurred it.
Columns
| Column | Description | Data Type |
|---|---|---|
| partition_key | [ID] Technical ETL column used to partition the mart's storage/processing. Derived from the record's primary business key. | — |
| row_key | [ID] Technical ETL column holding the unique row identifier used for upsert/merge deduplication. | — |
| timestamp | [TIMESTAMP] Technical ETL column recording when this row was produced by the dbt run ( | — |
| station_code | [DIMENSION] The station code from which the underlying data was captured/reported (e.g., | — |
| header_isn | [ID] The Hermes Serial Number identifying the parent header record. | — |
| type | [CLASSIFICATION] The type of transaction/charge (e.g., | — |
| tariff_code | [DIMENSION] The tariff code applied to the transaction (e.g., | — |
| tariff_group_isn | [ID] The Hermes Serial Number of the tariff group. | — |
| tariff_group_identifier | [DIMENSION] The business identifier of the tariff group (e.g., | — |
| tariff_group_type | [CLASSIFICATION] The type of tariff group (e.g., | — |
| tariff_group_type_translation | [DIMENSION] The locally-translated label of the tariff group type (e.g., | — |
| description | [DIMENSION] The free-text description of the transaction (e.g., | — |
| fixed_charge | [FLAG] Indicates whether the charge is a fixed amount rather than a calculated/variable one. | — |
| base_amount | [METRIC] The monetary amount expressed in the shed's base currency. | — |
| currency_amount | [METRIC] The monetary amount expressed in the transaction's own currency. | — |
| currency | [DIMENSION] The ISO currency code of the transaction (e.g., | — |
| currency_rate | [METRIC] The exchange rate applied between the transaction currency and the shed base currency. | — |
| tax_code_isn | [ID] The Hermes Serial Number of the tax code applied. | — |
| tax_code_description | [DIMENSION] The description of the tax code applied (e.g., | — |
| tax_code_percent | [METRIC] The tax rate percentage applied by the tax code. | — |
| customer_isn | [ID] The Hermes Serial Number of the payee/customer on the transaction. | — |
| customer_name | [DIMENSION] The name of the payee/customer. | — |
| customer_type | [CLASSIFICATION] The type of the payee/customer (e.g., | — |
| customer_is_cash_payer | [FLAG] Indicates whether the payee is a cash-paying customer. | — |
| object_carrier | [DIMENSION] The IATA carrier code of the object the record relates to. | — |
| object_isn | [ID] The Hermes Serial Number of the object (AWB, ULD, flight, etc.) the record relates to. | — |
| object_type | [CLASSIFICATION] The type of object the record relates to (e.g., | — |
| object_mode | [CLASSIFICATION] The handling direction of the object: | — |
| object_name | [DIMENSION] The human-readable name of the object (AWB Number, ULD Number, HAWB Number, etc.). | — |
| object_date | [DIMENSION] The date associated with the object (flight date for flights, transaction creation date otherwise). | — |
| object_ready_to_invoice_timestamp | [TIMESTAMP] The timestamp from which the object became eligible to be invoiced. | — |