Darstellung
ReturnHead
Tabelle: return_head
Domain: ReturnHead · com.reybex.domain.wws.returnManagement
Modul: SAL
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 auto_increment | Ja | — | Primärschlüssel (Domain: id) |
tenant_id | bigint | Nein | — | Mandanten-ID (Multi-Tenant – in Abfragen fast immer filtern) (Domain: tenantId) |
doc_type_id | bigint | Ja | — | Fremdschlüssel → doc type |
doc_number | varchar(150) | Nein | — | Belegnummer (Domain: docNumber) |
customer_id | bigint | Nein | — | Fremdschlüssel → customer |
sales_head_id | bigint | Ja | — | Fremdschlüssel → sales head |
pur_head_id | bigint | Ja | — | Fremdschlüssel → pur head |
profit_center_id | bigint | Ja | — | Fremdschlüssel → profit center |
doc_date | datetime | Ja | — | Belegdatum (Domain: docDate) |
status | smallint | Nein | — | status |
shipping_id | bigint | Ja | — | Fremdschlüssel → shipping |
notes | text | Ja | — | Interne Notizen (Domain: notes) |
is_delete | smallint | Nein | 0 | Soft-Delete (0 = aktiv, 1 = gelöscht) |
range_number | bigint | Ja | — | Domain-Feld rangeNumber |
date_created | datetime | Ja | — | Anlagezeitpunkt |
created_by_id | bigint | Ja | — | Angelegt von (Benutzer-ID) |
last_updated | datetime | Ja | CURRENT_TIMESTAMP | Letzte Änderung |
updated_by_id | bigint | Ja | — | Geändert von (Benutzer-ID) |
marktplace_id | bigint | Ja | — | Fremdschlüssel → marktplace |
return_result_id | bigint | Ja | — | Fremdschlüssel → return result |
external_reference_number | varchar(100) | Ja | — | Domain-Feld externalReferenceNumber |
attribute_code | text | Ja | — | Domain-Feld attributeCode |
attribute_json | text | Ja | — | Domain-Feld attributeJson |
attribute_settings | text | Ja | — | Domain-Feld attributeSettings |
responsible_person_id | bigint | Ja | — | Fremdschlüssel → responsible person |
ref_return_head_id | bigint | Ja | — | Fremdschlüssel → ref return head |
Fremdschlüssel
| Spalte(n) | Referenz |
|---|---|
responsible_person_id | user (id) |
tenant_id | company (tenant_id) |
sales_head_id | sales_head (id) |
pur_head_id | pur_head (id) |
customer_id | customer (id) |
doc_type_id | ltt_return_doc_type (id) |
marktplace_id | ltt_marktplace (id) |
return_result_id | ltt_return_result (id) |
ref_return_head_id | return_head (id) |