Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| pos_saleposition_id | int8 | 19 | null |
|
|
The primary key of this table. Identifies a single line item within a sale. |
||||||||
| internal_payment_id | int8 | 19 | √ | null |
|
|
DEPRECATED. Use |
|||||||
| pos_id | int8 | 19 | √ | null |
|
|
The parent sale transaction this line item belongs to. |
|||||||
| organization_unit_id | int8 | 19 | √ | null |
|
|
The location where this sale occurred. |
|||||||
| cash_register_id | int8 | 19 | √ | null |
|
|
The cash register used for this sale, if applicable. |
|||||||
| sale_type | varchar | 256 | √ | null |
|
|
The channel through which the sale was initiated. Values
|
|||||||
| sale_position_type | varchar | 256 | √ | null |
|
|
The type of product or item sold in this line item. Values
|
|||||||
| sales_time | timestamptz | 35 | √ | null |
|
|
Timestamp when this sale position was created. |
|||||||
| product_id | varchar | 256 | √ | null |
|
|
Key identifying the product. Linkable to dim_product. |
|||||||
| price | numeric | 19,2 | √ | null |
|
|
Unit price of the item before discounts. |
|||||||
| currency_code | varchar | 256 | √ | null |
|
|
ISO currency code for monetary amounts. |
|||||||
| tax_percent | numeric | 19,2 | √ | null |
|
|
Applicable tax rate as a percentage. |
|||||||
| discount_amount | numeric | 19,2 | √ | null |
|
|
Absolute discount amount applied to this line item. |
|||||||
| discount_percentage | numeric | 19,2 | √ | null |
|
|
Percentage discount applied to this line item. |
|||||||
| amount | numeric | 19,2 | √ | null |
|
|
Final monetary amount for this line item after discounts. |
|||||||
| term_of_validity | int4 | 10 | √ | null |
|
|
Validity duration value for voucher-type positions. |
|||||||
| term_of_validity_unit | varchar | 256 | √ | null |
|
|
Unit for the validity duration (e.g. DAY, MONTH, YEAR). Only populated for voucher positions. |
|||||||
| int8 | 19 | √ | null |
|
|
Reference to a related sale position, used for bottle deposit linkage. |
||||||||
| voucher_credit_amount | numeric | 19,2 | √ | null |
|
|
Amount paid via voucher credit for this line item. |
|||||||
| consumption_credit_amount | numeric | 19,2 | √ | null |
|
|
Amount paid via consumption credit for this line item. |
|||||||
| bonus_amount | numeric | 19,2 | √ | null |
|
|
Bonus amount applied to consumption credit positions. |
|||||||
| last_updated | timestamptz | 35 | √ | null |
|
|
System column. UTC Timestamp at which entry was calculated (lags shortly behind source system). |
|||||||
| data_landing_time | timestamptz | 35 | getdate() |
|
|
System column. UTC timestamp assigned when a table batch is applied on Redshift. It represents warehouse landing order at table-batch granularity, not source event order. Usable to filter for incremental extractions. |



