Darstellung
DocumentRules
Tabelle: ltt_shipping_rules
Domain: DocumentRules · com.reybex.domain.smartpack
Modul: SMP
Partner-Hinweise
- Daten liegen mandantengetrennt – bei SELECT fast immer
tenant_id = :mandantsetzen (Spalte ggf.TenantIdin älteren Tabellen). - Schreibende SQL (
INSERT/UPDATE/DELETE) nur in abgestimmten Export-/Report-Jobs (Transaktion BAS23) und nie ohne Freigabe durch reybex. - Für API-Integrationen bevorzugt die API statt direkter DB-Zugriffe.
Primärschlüssel
id
Spalten
| Spalte | SQL-Typ | NULL | Default | Beschreibung |
|---|---|---|---|---|
id | bigint | Nein | — | Primärschlüssel (Domain: id) |
tenant_id | bigint | Nein | — | Mandanten-ID (Multi-Tenant – in Abfragen fast immer filtern) (Domain: tenantId) |
shipping_id | bigint | Ja | — | Fremdschlüssel → shipping |
delivery_country_id | bigint | Ja | — | Fremdschlüssel → delivery country |
marketplace_id | bigint | Ja | — | Fremdschlüssel → marketplace |
profit_center_id | bigint | Ja | — | Fremdschlüssel → profit center |
mat_group_id | bigint | Ja | — | Fremdschlüssel → mat group |
material_id | bigint | Ja | — | Fremdschlüssel → material |
customer_group_id | bigint | Ja | — | Fremdschlüssel → customer group |
weight_from | decimal(20, 8) | Ja | — | Domain-Feld weightFrom |
weight_to | decimal(20, 8) | Ja | — | Domain-Feld weightTo |
zip_street | varchar(20) | Ja | — | Domain-Feld zipStreet |
lock_order_when_street_number_empty | smallint | Ja | 0 | lock order when street number empty |
date_created | datetime | Ja | — | Anlagezeitpunkt |
last_updated | datetime | Ja | CURRENT_TIMESTAMP | Letzte Änderung |
created_by_id | bigint | Ja | — | Angelegt von (Benutzer-ID) |
updated_by_id | bigint | Ja | — | Geändert von (Benutzer-ID) |
unique_name | varchar(20) | Ja | — | unique name |
is_customer_specific | smallint | Ja | — | Boolean: Customer Specific |
check_packstation | smallint | Ja | 0 | check packstation |
is_commercial | smallint | Ja | — | Domain-Feld isCommercial |
sales_doc_type_id | bigint | Ja | — | Fremdschlüssel → sales doc type |
packstation_words | varchar(500) | Ja | — | Domain-Feld packstationWords |
warehouse_id | bigint | Ja | — | Fremdschlüssel → warehouse |
material_type_id | bigint | Ja | — | Fremdschlüssel → material type |
profit_center_destination_id | bigint | Ja | — | Fremdschlüssel → profit center destination |
origin_of_article_id | bigint | Ja | — | Fremdschlüssel → origin of article |
is_third_country | smallint | Ja | 0 | Boolean: Third Country |
is_eu | smallint | Ja | 0 | Boolean: Eu |
price_from | decimal(20, 8) | Ja | — | Domain-Feld priceFrom |
price_to | decimal(20, 8) | Ja | — | Domain-Feld priceTo |
is_gross_price | smallint | Ja | 0 | Boolean: Gross Price |
priority | smallint | Ja | — | Domain-Feld priority |
is_prime | int | Ja | 0 | 0 = All, 1 = isPrime, 2= isNotPrime |
Fremdschlüssel
| Spalte(n) | Referenz |
|---|---|
warehouse_id | ltt_warehouse (id) |
material_type_id | ltt_material_type (id) |
origin_of_article_id | lt_country (id) |
profit_center_destination_id | ltt_profit_center (id) |
tenant_id | company (tenant_id) |
delivery_country_id | lt_country (id) |
customer_group_id | ltt_customer_group (id) |
material_id | material (id) |
marketplace_id | ltt_marktplace (id) |
mat_group_id | ltt_mat_group (id) |
profit_center_id | ltt_profit_center (id) |
sales_doc_type_id | ltt_sales_doc_type (id) |
shipping_id | ltt_shipping (id) |