Darstellung
IncomingGoodsRelation
Tabelle: incoming_goods_relation
Domain: IncomingGoodsRelation · com.reybex.domain.wws
Modul: INV
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) |
source_verification_item_id | bigint | Ja | — | Fremdschlüssel → source verification item |
source_pur_item_id | bigint | Ja | — | Fremdschlüssel → source pur item |
target_pur_item_id | bigint | Nein | — | Fremdschlüssel → target pur item |
quantity | decimal(19, 2) | Nein | 0.00 | Menge (Domain: quantity) |
unit_id | bigint | Ja | — | Fremdschlüssel → unit |
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) |
stock_item_id | bigint | Ja | — | Fremdschlüssel → stock item |
distribution_value | decimal(19, 8) | Ja | 0.00000000 | Domain-Feld distributionValue |
Fremdschlüssel
| Spalte(n) | Referenz |
|---|---|
stock_item_id | stock_item (id) |
tenant_id | company (tenant_id) |
source_verification_item_id | verification_item (id) |
source_pur_item_id | pur_item (id) |
target_pur_item_id | pur_item (id) |
unit_id | ltt_unit (id) |