Darstellung
SalesHeadDocRule
Tabelle: ltt_sales_head_doc_rule
Domain: SalesHeadDocRule · com.reybex.domain.wws.sales
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) |
from_doc_type_id | bigint | Ja | — | Fremdschlüssel → from doc type |
to_doc_type_id | bigint | Ja | — | Fremdschlüssel → to doc type |
calculate_price | smallint | Ja | 0 | calculate price |
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) |
tenant_id | bigint | Nein | — | Mandanten-ID (Multi-Tenant – in Abfragen fast immer filtern) (Domain: tenantId) |
unique_name | varchar(20) | Ja | — | unique name |
is_customer_specific | smallint | Ja | 0 | Boolean: Customer Specific |
is_disabled | smallint | Ja | 0 | Boolean: Disabled |
sort_order | int | Ja | — | sort order |
search_vat_key | smallint | Ja | 0 | search vat key |
force_to_update_warehouse | smallint | Ja | 0 | force to update warehouse |
split_document_per_item | smallint | Ja | 0 | split document per item |
resolve_bom | smallint | Ja | 0 | resolve bom |
is_manually_closed | smallint | Ja | 0 | Boolean: Manually Closed |
over_referenced_quantity_percentage | decimal(20, 2) | Ja | 0.00 | over referenced quantity percentage |
ignore_quantity_on_item_copy | smallint | Ja | 0 | ignore quantity on item copy |
reset_new_document_on_copy | smallint | Ja | 0 | reset new document on copy |
recalculate_disposal_fees | smallint | Ja | 0 | recalculate disposal fees |
Fremdschlüssel
| Spalte(n) | Referenz |
|---|---|
from_doc_type_id | ltt_sales_doc_type (id) |
to_doc_type_id | ltt_sales_doc_type (id) |
tenant_id | company (tenant_id) |