Darstellung
StockTakingHead
Tabelle: stock_taking_head
Domain: StockTakingHead · com.reybex.domain.wws.stock
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) |
doc_type_id | bigint | Ja | — | Fremdschlüssel → doc type |
doc_date | datetime | Ja | — | Belegdatum |
post_date | datetime | Ja | — | Domain-Feld postDate |
doc_number | varchar(50) | Ja | — | Belegnummer (Domain: docNumber) |
long_text | text | Ja | — | Domain-Feld longText |
posted_status | int | Ja | 0 | posted status |
is_delete | int | Ja | 0 | Soft-Delete (0 = aktiv, 1 = gelöscht) |
is_printed | int | Ja | 0 | Boolean: Printed |
updated_by_id | bigint | Ja | — | Geändert von (Benutzer-ID) |
last_updated | datetime | Ja | CURRENT_TIMESTAMP | Letzte Änderung |
date_created | datetime | Ja | — | Anlagezeitpunkt |
total_entry_move_type_id | bigint | Ja | — | Fremdschlüssel → total entry move type |
total_issue_move_type_id | bigint | Ja | — | Fremdschlüssel → total issue move type |
avail_entry_move_type_id | bigint | Ja | — | Fremdschlüssel → avail entry move type |
avail_issue_move_type_id | bigint | Ja | — | Fremdschlüssel → avail issue move type |
quality_entry_move_type_id | bigint | Ja | — | Fremdschlüssel → quality entry move type |
quality_issue_move_type_id | bigint | Ja | — | Fremdschlüssel → quality issue move type |
blocked_entry_move_type_id | bigint | Ja | — | Fremdschlüssel → blocked entry move type |
blocked_issue_move_type_id | bigint | Ja | — | Fremdschlüssel → blocked issue move type |
reserved_entry_move_type_id | bigint | Ja | — | Fremdschlüssel → reserved entry move type |
reserved_issue_move_type_id | bigint | Ja | — | Fremdschlüssel → reserved issue move type |
created_by_id | bigint | Ja | — | Angelegt von (Benutzer-ID) |
warehouse_id | bigint | Ja | — | Fremdschlüssel → warehouse |
stock_place_id | bigint | Ja | — | Fremdschlüssel → stock place |
is_closed | smallint | Ja | 0 | Boolean: Closed |
Fremdschlüssel
| Spalte(n) | Referenz |
|---|---|
tenant_id | company (tenant_id) |
reserved_issue_move_type_id | ltt_stock_move_typ (id) |
warehouse_id | ltt_warehouse (id) |
doc_type_id | ltt_inv_doc_type (id) |
avail_entry_move_type_id | ltt_stock_move_typ (id) |
avail_issue_move_type_id | ltt_stock_move_typ (id) |
quality_entry_move_type_id | ltt_stock_move_typ (id) |
quality_issue_move_type_id | ltt_stock_move_typ (id) |
blocked_entry_move_type_id | ltt_stock_move_typ (id) |
blocked_issue_move_type_id | ltt_stock_move_typ (id) |
reserved_entry_move_type_id | ltt_stock_move_typ (id) |
stock_place_id | ltt_stockplace (id) |